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(accordion): top align accordion headings #4125

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Sep 27, 2019

Closes #4051

refs IBM-Design/idr#98

This PR changes the accordion heading chevron alignment rules so that it is top aligned rather than center aligned. The $accordion-arrow-margin token is modified order to keep the chevron centered when the accordion heading is one line long. The React Accordion storybook example is also modified to follow the design guidelines (headings should remain 14px large)

Changelog

Changed

  • accordion heading alignment
  • $accordion-arrow-margin token (margin-top rule)
  • React Accordion story

Testing / Reviewing

Ensure the accordion looks correct with multiline headings (this can be done by editing storybook knobs or directly changing the content in devtools directly)

@netlify
Copy link

netlify bot commented Sep 27, 2019

Deploy preview for the-carbon-components ready!

Built with commit f9edb3d

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

@netlify
Copy link

netlify bot commented Sep 27, 2019

Deploy preview for carbon-elements ready!

Built with commit f9edb3d

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

@netlify
Copy link

netlify bot commented Sep 27, 2019

Deploy preview for carbon-components-react ready!

Built with commit f9edb3d

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

@jnm2377 jnm2377 requested a review from a team September 27, 2019 18:10
@ghost ghost requested review from jillianhowarth and removed request for a team September 27, 2019 18:10
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.

Accordion component: chevron should stay align with first line
4 participants