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

fix(select): reposition chevron SVG #5672

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Mar 20, 2020

Closes #5651

This PR resolves a chevron SVG positioning issue in the select component on IE11

Testing / Reviewing

Confirm the select component is visually correct on all browsers

@netlify
Copy link

netlify bot commented Mar 20, 2020

Deploy preview for carbon-elements ready!

Built with commit af948de

https://deploy-preview-5672--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Mar 20, 2020

Deploy preview for carbon-components-react ready!

Built with commit af948de

https://deploy-preview-5672--carbon-components-react.netlify.com

@jdcai
Copy link

jdcai commented Mar 20, 2020

The height: 100% needs to be on the svg instead for it to look correct
.#{$prefix}--select__arrow > svg { height: 100%; }

@emyarod
Copy link
Member Author

emyarod commented Mar 20, 2020

.bx--select__arrow selects the svg

<ChevronDown16 className={`${prefix}--select__arrow`} />

@jdcai
Copy link

jdcai commented Mar 20, 2020

Oh looks like its an angular specific thing. The class is not on the svg so it doesn't display properly without the > svg.
image

@emyarod
Copy link
Member Author

emyarod commented Mar 20, 2020

I see, you may want to open that issue separately against @carbon/icons-angular (related carbon-design-system/carbon-icons-angular#10?)

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @emyarod!

@cal-smith
Copy link
Contributor

Oh looks like its an angular specific thing. The class is not on the svg so it doesn't display properly without the > svg.
image

Check the icons-angular README: https://github.com/carbon-design-system/carbon-icons-angular#api

We support innerClass for the component form, but the directive form should be preferred in general, since it makes styling and positioning easier ... We should be able to use carbon-design-system/carbon-components-angular#1143 to update it to the correct form.

@asudoh asudoh merged commit b558e58 into carbon-design-system:master Mar 24, 2020
@emyarod emyarod deleted the 5651-select-svg-positioning branch March 25, 2020 14:44
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.

Select component's arrow displays incorrectly on IE11
7 participants