-
Notifications
You must be signed in to change notification settings - Fork 27
(PDS-370) Augment existing Content styles with rules defined in Nebula #177
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
Conversation
b508b73
to
2528c19
Compare
@scotje Here is the PR to upstream Nebula's in-app documentation styles to the |
Yea, I hesitated on bringing default image styles in, but decided they are helpful if the content is completely arbitrary. That said, happy to reduce or port back whatever is needed. For what it's worth, we have a a custom class in Nebula that we put on special case images. We've also done the same for a unique table cell rule. So, per images, happy to accommodate. Per code, also happy to accommodate, but I think it's more valuable we standardize on a shared pattern there. Easier for users to jump between product documentation is my thought. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome! Just added a few comments on using our common Sass variables where we can.
white-space: pre-wrap; | ||
white-space: -moz-pre-wrap; | ||
white-space: -pre-wrap; | ||
white-space: -o-pre-wrap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you don't need to prefix white-space: pre-wrap
, which has pretty good support: https://caniuse.com/#search=white-space
packages/react-components/source/scss/library/components/_content.scss
Outdated
Show resolved
Hide resolved
packages/react-components/source/scss/library/components/_content.scss
Outdated
Show resolved
Hide resolved
packages/react-components/source/scss/library/components/_content.scss
Outdated
Show resolved
Hide resolved
…ent.scss Co-Authored-By: Nathan Ward <[email protected]>
…ent.scss Co-Authored-By: Nathan Ward <[email protected]>
…ent.scss Co-Authored-By: Nathan Ward <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves PDS-370
For transparency, here are the few TODOs I added to the Content component: