Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding <select multiple> styles #248

Merged
merged 1 commit into from
Feb 15, 2015
Merged

Conversation

jasontipton
Copy link
Contributor

I am using Gumby in a new project and while updating HTML elements such as radio buttons, check boxes, and select elements I found that multi selects were not part of the Gumby UI demo. I checked the CSS files and found no styling other than '.picker select'. Prefacing the <select> elements with the 'picker' class triggers Gumby's design updates to the select (making multi-selects appear like drop down selects) so instead I think a new class of 'multi-picker' could help and be used as the wrapper for multi-selects instead of 'picker'.

Select "Picker" Example:
<div class="picker">
<select>
<option value="#" disabled="">Favorite Dalek phrase...</option>
<option>EXTERMINATE</option>
<option>EXTERMINATE</option>
<option>EXTERMINATE</option>
</select>
</div>

Select "Multi-Picker" Example:
<div class="multi-picker">
<select multiple="multiple">
<option value="#" disabled="">Favorite Dalek phrase...</option>
<option>EXTERMINATE</option>
<option>EXTERMINATE</option>
<option>EXTERMINATE</option>
</select>
</div>

The proposed styles attempt to use many of the same styles already used in Gumby's UI for <select> differing only where needed such as background-image/color, padding, etc.

I am using Gumby in a new project and while updating HTML elements such as radio buttons, check boxes, and select elements I found that multi selects were not part of the Gumby UI demo.  I checked the CSS files and found no styling other than '.picker select'.  Prefacing the <select> elements with the 'picker' class triggers Gumby's design updates to the select (making multi-selects appear like drop down selects) so instead I think a new class of 'multi-picker' could help and be used as the wrapper for multi-selects instead of 'picker'.

Select "Picker" Example:
<div class="picker">
    <select>
        <option value="#" disabled="">Favorite Dalek phrase...</option>
        <option>EXTERMINATE</option>
        <option>EXTERMINATE</option>
        <option>EXTERMINATE</option>
    </select>
</div>

Select "Multi-Picker" Example:
<div class="multi-picker">
    <select multiple="multiple">
        <option value="#" disabled="">Favorite Dalek phrase...</option>
        <option>EXTERMINATE</option>
        <option>EXTERMINATE</option>
        <option>EXTERMINATE</option>
    </select>
</div>

The proposed styles attempt to use many of the same styles already used in Gumby's UI for <select> differing only where needed such as background-image/color, padding, etc.
danhere added a commit that referenced this pull request Feb 15, 2015
Adding <select multiple> styles
@danhere danhere merged commit abee447 into GumbyFramework:master Feb 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants