-
Notifications
You must be signed in to change notification settings - Fork 8
chore: upgrade styleguidist #23
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
|
is this customization stuff part of the new styleguidist or was that already possible before? |
|
Was already possible before I guess, but I didn't want to do it before I upgrade the styleguidist as well. |
styleguide/ComponentsList.js
Outdated
| <li key={href}> | ||
| <a | ||
| className={classnames( | ||
| 'olt-Link', |
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.
let's use variables here: oltStyles.Link
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.
✅
styleguide/Markdown/Pre.js
Outdated
| const PreRenderer = ({ className, children }) => { | ||
| const isHighlighted = className && className.indexOf('lang-') !== -1; | ||
| return ( | ||
| <div className="olt-Card pre--wrapper"> |
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.
let's use variables here: oltStyles.Card
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.
or the Card component directly
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.
Good catch. I replaced it with Card component.
styleguide/Markdown/Pre.js
Outdated
| const isHighlighted = className && className.indexOf('lang-') !== -1; | ||
| return ( | ||
| <div className="olt-Card pre--wrapper"> | ||
| <div className="olt-Card-content"> |
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.
let's use variables here: oltStyles.CardContent
|
It looks great in general, just a few tiny notes. |
No description provided.