Closed ajb closed 9 years ago
Closes #20
Done. Are you looking to replace .select_wrapper
entirely? If so, are you handling the migration on Screendoor or should I?
Currently, StyledSelect
is a javascript component inside of Screendoor that uses the .select_wrapper
class. This PR will a) move these to dvl-core, and b) rename the class name to styled_select_wrapper
. Does that clear things up?
width
issue?You can add the .auto
or .full
classes to .styled_select_wrapper
, or set a width
with an inline style.
@jrubenoff: can you look again, and browser test too? all of the relevant use cases should now be covered in the preview.
Looks good in Safari / Chrome / FF, will download an IE9 VM and test by sometime tomorrow night.
Why don't you use Browserstack? If you need help getting it setup, we can do it today.
On Wed, Jan 7, 2015 at 10:31 PM, Josh Rubenoff notifications@github.com wrote:
Looks good in Safari / Chrome / FF, will download an IE9 VM and test by sometime tomorrow night.
— Reply to this email directly or view it on GitHub https://github.com/dobtco/dvl-core/pull/22#issuecomment-69141533.
Adam Becker 510.928.9111 @AdamJacobBecker
I would also recommend BrowserStack's screenshots feature -- I'll post an example on the checkboxes/radio thread.
Also, assuming that our goal is to make the regular <select>
and the dropdown_select
look the same, one potential issue is that the dropdown_select
doesn't have an focus
state -- I'm not sure if that's possible to achieve or not.
Ah, I had no idea they let you test locally... thanks!
Alrighty, should be good to go.
@jrubenoff: here's the JS for the styled selects. Note that I've commented out everything to do with the
width
option, because I didn't want to pre-determine how you'll implement that. However, it's worth noting that in our current implementation, we have options for setting the width of the select atfull
,auto
, or[X]px
, and I'm pretty sure we're using each of those options.We should aim to use the existing dropdown styles here, right?
This should also be easier now that I've updated the preview app to use Rails. Hoorah!