Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/workarea-commerce/workarea-styled-selects
You wanna style <select> tags? This is the plugin for you.
https://github.com/workarea-commerce/workarea-styled-selects
Last synced: about 1 month ago
JSON representation
You wanna style <select> tags? This is the plugin for you.
- Host: GitHub
- URL: https://github.com/workarea-commerce/workarea-styled-selects
- Owner: workarea-commerce
- License: other
- Created: 2019-08-21T19:32:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:14:21.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T13:17:16.739Z (about 2 months ago)
- Language: Ruby
- Homepage: https://plugins.workarea.com/plugins/styled-selects
- Size: 565 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Workarea Styled Selects
================================================================================Styled Selects plugin for the Workarea platform.
This plugin adds a necessary styling hook for select inputs, along with a basic stylesheet to help jump-start styling the select elements within your application.
Getting Started
--------------------------------------------------------------------------------Add the gem to your application's Gemfile:
```ruby
# ...
gem 'workarea-styled_selects'
# ...
```Update your application's bundle.
```bash
cd path/to/application
bundle
```Usage
--------------------------------------------------------------------------------Installing this plugin will override the `select_tag` haml helper, wrapping it in a content tag with the `.styled-select` class.
Any select tags created by any means other than the select_tag helper, for example using a JST or `%select` will not automatically receive styles from this plugin. In order to style those elements you will need to update the relevant view files to wrap the select in
```html
```Some default styles have been included in this plugin, however it is expected that you will need to override the stylesheet to update these styles to match your design, you can do this using the following override generator command
```bash
bundle exec rails g workarea:override stylesheets workarea/styled_selects components/\_styled_select.scss
```Workarea Commerce Documentation
--------------------------------------------------------------------------------See [https://developer.workarea.com](https://developer.workarea.com) for Workarea Commerce documentation.
License
--------------------------------------------------------------------------------Workarea Styled Selects is released under the [Business Software License](LICENSE)