-
Notifications
You must be signed in to change notification settings - Fork 494
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
[supersedes #58] Add arrow for <select> #94
Conversation
select tag is styled in a new way added preview for select tag
Added two svg files for the arrow. Removed old inline svg and url-encode. Created SASS variables for the svg path.
Default browser arrow was displayed in IE11.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work and neat trick with floatPrecision: 0
. I'm glad that you found a way to inline the SVGs. (Thanks for doing that for me!)
Note: I didn't yarn build yet so you can better see the changes. Why don't we just only build prior to publishing a new release?
Yup, I agree. I think you mentioned before that we can get rid of the builds once we switch to npm distributed releases anyways, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, there's some (hopefully easy) merge conflicts that I can't see through Github's merge conflict UI. Do you mind resolving these?
Yep, exactly :)
Done. Both the recent text-semantics PR and this one added some variables to the end of the respective files, was indeed an easy fix 👍🏻 |
@jonaskuske Great work! Thank's |
Fixed! @kylejrp could you please take a look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, awesome work guys!
I took the liberty to update #58 so it aligns with our CSS-variable powered codebase:
(and so that @IL4Miy still appears as a contributor in our git history :) )
postcss-inline-svg
to inline the SVGs instead of loading them throughurl()
select-arrow.svg
for both dark & light versions, as you can specify the desired color while inlining with thesvg-load()
function ofpostcss-inline-svg
Preview URL: https://deploy-preview-94--watercss.netlify.com/
Note: I didn't
yarn build
yet so you can better see the changes. Why don't we just onlybuild
prior to publishing a new release?fix #57
close #58
¹ I reduced the
floatPrecision
to0
so all numbers used in the SVG are rounded to an integer. This saves another ~50% – which we really need, as we now ship both the dark and the light arrow in our non-standalone builds. The resulting SVG looks a bit funny when opened in an image viewer at large size, but perfectly fine in the browser, even at maximum zoom level.