Skip to content

[BpkFloatingNotification] [ISO-1654] Add critical floating notification type#4323

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-critical-type-floating-notification
Draft

[BpkFloatingNotification] [ISO-1654] Add critical floating notification type#4323
Copilot wants to merge 3 commits intomainfrom
copilot/add-critical-type-floating-notification

Conversation

Copy link
Contributor

Copilot AI commented Mar 25, 2026

  • Remove $bpk-critical-background-day: #e70866; local variable from BpkFloatingNotification.module.scss
  • Replace background-color: $bpk-critical-background-day with background-color: tokens.$bpk-status-danger-spot-day in the &--critical block (uses a proper semantic status token rather than a cross-component private token, to avoid unpredictable theming)
  • All 13 tests pass

Remember to include the following changes:

  • Ensure the PR title includes the name of the component you are changing so it's clear in the release notes for consumers of the changes in the version e.g [Clover-123][BpkButton] Updating the colour
  • README.md (If you have created a new component)
  • Component README.md
  • Tests
  • Accessibility tests
    • The following checks were performed:
      • Ability to navigate using a keyboard only
      • Zoom functionality (Deque University explanation):
        • The page SHOULD be functional AND readable when only the text is magnified to 200% of its initial size
        • Pages must reflow as zoom increases up to 400% so that content continues to be presented in only one column i.e. Content MUST NOT require scrolling in two directions (both vertically and horizontally)
      • Ability to navigate using a screen reader only
  • Storybook examples created/updated
  • For breaking changes or deprecating components/properties, migration guides added to the description of the PR. If the guide has large changes, consider creating a new Markdown page inside the component's docs folder and link it here

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@skyscanner-backpack-bot
Copy link

Visit https://backpack.github.io/storybook-prs/4323 to see this build running in a browser.

@skyscanner-backpack-bot
Copy link

skyscanner-backpack-bot bot commented Mar 25, 2026

Browser support

If this is a visual change, make sure you've tested it in multiple browsers.

Generated by 🚫 dangerJS against b09f27b

@mariia-shyn mariia-shyn changed the title [BpkFloatingNotification] Add critical type [BpkFloatingNotification] [ISO-1654] Add critical floating notification type Mar 25, 2026
…er-error-day

Co-authored-by: mariia-shyn <206853533+mariia-shyn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Skyscanner/backpack/sessions/8ecf1b22-dd87-4bbf-a8a5-6176ca2ba3d6
}

&--critical {
background-color: tokens.$bpk-private-info-banner-error-day;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not use a component token from another component. When we do this it will make theming unpredictable.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot please use $bpk-status-danger-spot-day for the background color.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in b09f27b to use tokens.$bpk-status-danger-spot-day — a proper semantic status token rather than the cross-component private token.

Co-authored-by: gert-janvercauteren <728889+gert-janvercauteren@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Skyscanner/backpack/sessions/b87498a9-d2e1-4a93-bcb7-7fd55fb89daa
@skyscanner-backpack-bot
Copy link

Visit https://backpack.github.io/storybook-prs/4323 to see this build running in a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Non breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants