feat: add noticebox component - #19
Conversation
|
This looks great and all according to specs 👍 I observed a minor issue with |
HendrikThePendric
left a comment
There was a problem hiding this comment.
Could you rewrite the stories to the new syntax, i.e. with a default export + named exports?
Also I noticed we are using a title prop for the title. I don't think that is a bad approach per se, but I do see some similarities between this component and the Modal for which we expose a ModalTitle. So you could say this is somewhat inconsistent. Not sure if we should change that....
Yeah I thought about that, but I'd prefer to do that all at once for the entire lib. I already see several conventions that are diverging in this lib (like jest tests with a .test vs tests in the
Yeah true. I think that accepting a title prop is less hassle for the user of the component. It allows us more control over the styling of the title (placement for example), without forcing the user to go through the extra steps of importing a separate component, etc. Since we're moving away from enforcing certain components as children I think the prop also makes more sense, it's more react-like in my opinion. Maybe before the release, we could adapt the other components, like the modal, to this pattern as well and unify it across the entire lib. |
Mohammer5
left a comment
There was a problem hiding this comment.
This looks quite solid!
I don't really like the feature files' scenario titles, they're very technical instead of describing an actual scenario
HendrikThePendric
left a comment
There was a problem hiding this comment.
I would rather move everything over at once than do it gradually for each PR, I feel like otherwise we'll have multiple conventions in the codebase at the same time and make it harder to work on.
Fair enough... I'm afraid we are already at the stage where we have these multiple conventions though. That started weeks ago....
All right, updated it 👍 |
Yeah that's true. All right, I've updated it to the new format 👍 |
|
🎉 This PR is included in version 5.0.0-alpha.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 5.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This adds the NoticeBox component. See the design-system entry, the latest specs and a slack conversation about it.
This is what the component looks like at the moment (screenshots from storybook):
Todo:
Remarks:
<Info>icon from ui-icons. There are two Info icons being exported, are we overwriting the outlined version maybe?