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(datepicker): add top offset to fix vertical icon alignment IE11 #4235

Merged

Conversation

kbondanza
Copy link
Contributor

Closes #2061

This PR adds a top offset of 50% with transform: translateY(-50%), to vertically center the datepicker icon in IE11. position: relative is also added to date-picker-input__wrapper, so then --date-picker__icon will be positioned relative to date-picker-input__wrapper which will now be its nearest positioned ancestor.

Changelog

New

  • add position: relative to date-picker-input__wrapper to position --date-picker__icon relative to date-picker-input__wrapper.
  • add top: 50% and transform: translateY(-50%) to --date-picker__icon to vertically center datepicker icon in IE11.

Testing / Reviewing

@kbondanza kbondanza requested a review from a team as a code owner October 5, 2019 19:30
@ghost ghost requested review from asudoh and dakahn October 5, 2019 19:30
@netlify
Copy link

netlify bot commented Oct 5, 2019

Deploy preview for the-carbon-components ready!

Built with commit a27d2a3

https://deploy-preview-4235--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Oct 5, 2019

Deploy preview for carbon-elements ready!

Built with commit a27d2a3

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

@netlify
Copy link

netlify bot commented Oct 5, 2019

Deploy preview for carbon-components-react ready!

Built with commit a27d2a3

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

@asudoh asudoh requested a review from a team October 7, 2019 05:04
@ghost ghost requested review from mjabbink and removed request for a team October 7, 2019 05:04
Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me in IE11

image

image

@chrisconnors-ibm chrisconnors-ibm requested review from designertyler and laurenmrice and removed request for mjabbink October 7, 2019 14:39
Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

looks good 👍

@joshblack joshblack merged commit 0c05b81 into carbon-design-system:master Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE11: Date picker icons are not vertically centered
7 participants