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

Style issues when including other components containg <p> elements in Accordion content #5285

Closed
sabinead2 opened this issue Feb 6, 2020 · 0 comments · Fixed by #5291
Closed
Assignees

Comments

@sabinead2
Copy link

What package(s) are you using?

@carbon/vue 2.21.0

Detailed description

When I include inline notifications or modal dialogs in the accordion content the styles for all 'p' child elements are overwritten by

.bx--accordion__content p {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: .16px;
}

Style rules for a container should not override style rules of nested components.

As a work-around I redefine the concerned style rules in our application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants