-
Notifications
You must be signed in to change notification settings - Fork 182
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
[LOOM-1363][BpkButton]: Refactor BpkButtonV1 #3443
Conversation
Visit https://backpack.github.io/storybook-prs/3443 to see this build running in a browser. |
Approved visual changes (adding new VT for Button V1) |
Visit https://backpack.github.io/storybook-prs/3443 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3443 to see this build running in a browser. |
|
||
export { default } from './src/BpkButtonLinkOnDark'; | ||
const BpkButtonPrimary = (props: Props) => <BpkButton {...props} /> |
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.
Here if it's not defined the default is bpk-button should it be PrimaryOnLight? or is default === primary
?
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.
|
||
import BpkButton, {type Props} from './src/BpkButton'; | ||
|
||
const BpkButtonPrimaryOnLight = (props: Props) => <BpkButton {...props} primaryOnLight /> |
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 guess this is definitely primaryOnLight 😅
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 good
* remove button layers of abstraction * remove dummy fn * move tests, move proptypes back * add v1 visual stories, add cssModules to basebutton, update snaps
* remove button layers of abstraction * remove dummy fn * move tests, move proptypes back * add v1 visual stories, add cssModules to basebutton, update snaps
* remove button layers of abstraction * remove dummy fn * move tests, move proptypes back * add v1 visual stories, add cssModules to basebutton, update snaps
Remember to include the following changes:
[KOA-123][BpkButton] Updating the colour
README.md
(If you have created a new component)README.md