-
Notifications
You must be signed in to change notification settings - Fork 204
[NOJIRA][BpkModal]fix closeText style of BpkModal in dark mode #3919
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
Visit https://backpack.github.io/storybook-prs/3919 to see this build running in a browser. |
@@ -154,7 +154,7 @@ const BpkModalInner = ({ | |||
closeText ? ( | |||
<BpkButtonLink | |||
onClick={onClose} | |||
onDark={modalStyle === MODAL_STYLING.surfaceContrast} |
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.
we wrongly passed onDark
to BpkButtonLink
in https://github.com/Skyscanner/backpack/pull/3447/files#diff-df999835b1d554fe1ab9384a45253714a087966c76a54f3e00e1869ca698430dR162
But it should be alternate
alternate: boolean, |
@@ -160,7 +160,12 @@ const ContrastExample = (isOpen: boolean) => ( | |||
); | |||
|
|||
const WideExample = (isOpen: boolean) => ( | |||
<ModalContainer title="Modal title" closeLabel="Close modal" isOpen={isOpen} wide> | |||
<ModalContainer |
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.
format the file
@@ -177,6 +182,17 @@ const CloseButtonTextExample = (isOpen: boolean) => ( | |||
</ModalContainer> | |||
); | |||
|
|||
const ContrastWithCloseButtonTextExample = (isOpen: boolean) => ( |
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.
add a storybook for contrast with closeButtonText
Visit https://backpack.github.io/storybook-prs/3919 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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
LGTM |
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
* main: Bump actions/download-artifact in the artifacts-actions group (#3907) Bump actions/checkout from 4 to 5 (#3913) Fix closeText style of BpkModal in dark mode (#3919) Bump the babel group across 1 directory with 5 updates (#3917) Bump @babel/runtime in the npm_and_yarn group across 1 directory (#3884) Bump actions/cache from 4.2.3 to 4.2.4 (#3905) Bump webpack from 5.99.8 to 5.101.2 (#3916) QUAR-1046 Fix CTA Button Alignment, Logo Sizing, and Logo Vertical Alignment in Inset Banner (#3912) chore: removed duplicate aria-label (#3911) [CAPY-1594][BpkNavigationTabGroup/BpkBubble] Create and integrate 'new' bubble tooltip in navigation tab bar (#3909) [CLOV-381][BpkBreakpoint] update bpk breakpoint readme (#3910) [CYB-3904][BpkGraphicPromo] Render wrapper as semantic anchor tag to improve SEO (#3904) [CLOVER-532][BpkText] Add BpkText color prop with leverage css classname (#3900) fix: A11y and icon issue for inset banner sponsored (#3901) # Conflicts: # packages/bpk-component-text/README.md # packages/bpk-component-text/src/BpkText-test.tsx # packages/bpk-component-text/src/BpkText.tsx
When we wrongly set the
onDark
prop toBpkButtonLink
before(original PR), but actually, we don't haveonDark
inBpkButtonLink
, butalternate
insteadbackpack/packages/bpk-component-link/src/BpkButtonLink.js
Line 36 in 9d698ea
this would also cause an warning in dev when comsumer uses BpkModal

Screenshot
Remember to include the following changes:
[Clover-123][BpkButton] Updating the colour
README.md
(If you have created a new component)README.md