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): only target direct child p tags #5291

Merged

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Feb 6, 2020

Closes #5285

We were incorrectly applying body-long-01 text styles to ALL p elements inside of bx--accordion__content. This makes sure we only target direct child p tags

Changelog

Changed

  • Only target direct child p tags instead of all p tags inside of bx--accordion__content

Testing / Reviewing

Add an inline-notification to an accordion and ensure the text is not altered.

@tw15egan tw15egan requested a review from a team as a code owner February 6, 2020 19:55
@ghost ghost requested review from aledavila and dakahn February 6, 2020 19:55
@netlify
Copy link

netlify bot commented Feb 6, 2020

Deploy preview for carbon-components-react failed.

Built with commit a0e815a

https://app.netlify.com/sites/carbon-components-react/deploys/5e3c6f4a02a24f000cf62a99

@netlify
Copy link

netlify bot commented Feb 6, 2020

Deploy preview for carbon-elements failed.

Built with commit a0e815a

https://app.netlify.com/sites/carbon-elements/deploys/5e3c6f4af5b343000879aa39

@netlify
Copy link

netlify bot commented Feb 6, 2020

Deploy preview for carbon-components-react failed.

Built with commit ff3db3a

https://app.netlify.com/sites/carbon-components-react/deploys/5e3d9bafcc82370008d6b7da

@netlify
Copy link

netlify bot commented Feb 6, 2020

Deploy preview for carbon-elements ready!

Built with commit ff3db3a

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

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 @tw15egan!

@tw15egan tw15egan merged commit 48c9e68 into carbon-design-system:master Feb 7, 2020
@tw15egan tw15egan deleted the accordion-text-styles branch April 28, 2021 18:17
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.

Style issues when including other components containg <p> elements in Accordion content
3 participants