-
Notifications
You must be signed in to change notification settings - Fork 183
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
[DTO-4949][BpkNavigationBar] Create on-dark variant of BpkNavigationBar & Add Typescript #3110
Conversation
Build currently failing due to missing dependency, will be fixed after #3109 is merged |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Percy changes look as expected 👍 |
'default': 'default', | ||
onDark: 'on-dark', | ||
}; | ||
export type BarStyle = $Values<BAR_STYLES> |
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.
Do you think you could convert it into TS as we are moving away from flow? We've added this bit in the contribution guidelines https://github.com/Skyscanner/backpack/blob/main/CONTRIBUTING.md#typescript but maybe it's not too visible 😢
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.
Yes can do, I will admit I didn't re-read that for this PR so that's on me 🙈
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.
Migrated to typescript, does this mean it will need a major version change or still a minor?
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.
I think it's ok to keep it as minor 🤔 Looking at the changelog, I see we've generally released these as minor.
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.
Hmm this also means it's going to break snapshots likely for users of navBar, but I guess that's fine, we can add a note maybe in the changelog 🤔
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
packages/bpk-component-navigation-bar/src/BpkNavigationBar-test.tsx
Outdated
Show resolved
Hide resolved
import PropTypes from 'prop-types'; | ||
|
||
// TODO: close button is not really only a close button, we should rename and update the import here |
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.
Removed this TODO as I don't think it makes sense anymore?
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
packages/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.tsx
Show resolved
Hide resolved
packages/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.tsx
Show resolved
Hide resolved
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3110 to see this build running in a browser. |
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.
LGTM!
Description
Figma link
barStyle
to BpkNavigationBar, BpkNavigationBarButtonLink, BpkNavigationBarIconButtonon-dark
styleRemember to include the following changes:
[KOA-123][BpkButton] Updating the colour
README.md
(If you have created a new component)README.md