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

Apply richtext styles to elements inside a decoy #1

Open
drzax opened this issue Dec 14, 2022 · 0 comments
Open

Apply richtext styles to elements inside a decoy #1

drzax opened this issue Dec 14, 2022 · 0 comments

Comments

@drzax
Copy link
Member

drzax commented Dec 14, 2022

Currently all the styles applied to elements inside .u-richtext use child selectors to constrain text styles.

https://github.com/abcnews/odyssey/blob/250831bef207b3cedc23b4f7b18d4630bb6d4136/src/app/components/utilities/richtext.scss#LL67C3-L78C4

That makes sense, but it means content inside range decoys don't get the richtext styles. Could we extend all those styles to include

[class*='u-richtext'],
[class*='u-richtext'] > [data-component='Decoy'] {

or similar?

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

No branches or pull requests

1 participant