Skip to content

Remove note feedback color and use its blue for info (#792) - #800

Merged
adamkudrna merged 2 commits into
masterfrom
bc/792-remove-note-color
Nov 30, 2026
Merged

adamkudrna merged 2 commits into
masterfrom
bc/792-remove-note-color

Conversation

@adamkudrna

@adamkudrna adamkudrna commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

note and info both stood for informative feedback. Remove note and give info its blue (#007bff). This is a breaking change.

Closes #792

Changes

  • Remove note from FeedbackColor, the note theme tokens and $note* constants, and the text-note and bg-note utilities.
  • Set $info to #007bff. info is now the default color of Alert and Badge.
  • Define link colors through a new $link constant instead of $note.
  • Document info and help in Foundation › Colors.
  • Update info snapshots, and remove note tests and snapshots.
  • Remove unused Alert color snapshots.

Migration

  • Replace note with info in the color prop. In the default theme it looks the same.
  • Replace --rui-color-feedback-*note*, --rui-color-background-note, --rui-<Component>--*note*, .text-note and .bg-note with their info equivalents.
  • Existing info usages change from teal (#17a2b8) to blue (#007bff).

Testing

  • npm run build, npm run lint, npm run test:jest, npm run test:playwright and mkdocs build pass.

Review notes

  • Nit: info now shares #007bff with selected and links. This is intended per Remove note feedback color #792.
  • Pre-existing (follow-up): white text on #007bff has a contrast ratio of about 4.0:1, below WCAG AA for small text. This affects filled info Badge and Button.

@github-actions github-actions Bot added the BC Breaking change label Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-30 18:48 UTC

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the feedback-color consolidation from note to info.

No open issues 🎉

What changed in this PR

Consolidates informative feedback colors by removing note and assigning its blue (#007bff) to info, as requested in #792. This is a breaking change: consumers must migrate note props, tokens, and utilities to their info equivalents.

Changes:

  • Remove note from shared types, theme tokens, CSS utilities, and color-class handling.
  • Make info the default for Alert and Badge while preserving link colors through separate $link constants.
  • Update documentation examples and remove the shared note test case.
File Description
tests/​playwright/​propTests/​feedbackColorPropTest.ts Remove the note color test case.
src/​types/​colors.ts Remove note from FeedbackColor.
src/​theme.scss Remove note tokens and use independent link constants.
src/​styles/​theme-constants/​_colors.scss Set info to blue and define link constants.
src/​styles/​settings/​_utilities.scss Remove text-note and bg-note utilities.
src/​styles/​settings/​_collections.scss Remove note from the feedback collection.
src/​docs/​foundation/​colors.md Explain info and help; remove note swatches.
src/​docs/​foundation/​collections.md Update available feedback colors.
src/​docs/​css-helpers/​colors.md Remove note utility examples.
src/​components/​Modal/​README.md Remove the note demo option.
src/​components/​Card/​README.md Remove the note card example.
src/​components/​Button/​README.md Remove note button examples.
src/​components/​Badge/​README.md Show info as the default badge color.
src/​components/​Badge/​Badge.tsx Default Badge to info.
src/​components/​Alert/​README.md Document the default info alert.
src/​components/​Alert/​Alert.tsx Default Alert to info.
src/​components/​_helpers/​getRootColorClassName.ts Remove note class resolution.

Review effort: Balanced

@github-project-automation github-project-automation Bot moved this to 💡Ideas in The Board Nov 30, 2026
@adamkudrna adamkudrna moved this from 💡Ideas to 👀 In review in The Board Nov 30, 2026
@adamkudrna adamkudrna removed this from The Board Nov 30, 2026

@bedrich-schindler bedrich-schindler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1. Leftover note snapshot

src/components/Alert/__tests__/Alert.spec.tsx-snapshots/Alert-visual-color-note-1-chromium-linux.png is still in the repo. It uses the old naming (color-note, without string) and no test produces it, so CI doesn't flag it. Please delete it so no note is left. The other five orphans with the same old naming, Alert-visual-color-{danger,dark,help,info,warning}-1, could go too, here or in a separate PR.

2. Migration notes miss some removed tokens

The globs in the Migration section don't match every removed custom property:

  • --rui-color-feedback-note* doesn't cover --rui-color-feedback-on-note.
  • --rui-<Component>--note* doesn't cover --rui-Badge--filled--note__*, --rui-Badge--outline--note__color or --rui-Button--<priority>--note--<state>__*.

A downstream theme that overrides these would silently stop applying. Maybe list them as --rui-color-feedback-*note* and --rui-<Component>--*note*, or name them explicitly.

@adamkudrna

Copy link
Copy Markdown
Member Author

@bedrich-schindler Thanks, both are addressed:

  1. Deleted the leftover note snapshot in a fixup commit, and the other five old-naming Alert snapshots in "Remove unused Alert color snapshots (Remove note feedback color #792)".
  2. The migration patterns are now --rui-color-feedback-*note* and --rui-<Component>--*note*, which together with --rui-color-background-note cover all removed custom properties. Updated in the PR description, and in the replacement commit message in the fixup commit.

`note` and `info` both stood for informative feedback. `info` now takes the
blue of `note` and becomes the default color of `Alert` and `Badge`.

Migration:

- Replace `note` with `info` in the `color` prop. It looks the same in the
  default theme.
- Replace `--rui-color-feedback-*note*`, `--rui-color-background-note`,
  `--rui-<Component>--*note*`, `.text-note` and `.bg-note` with their `info`
  equivalents.
- Existing `info` usages change from teal to blue.
No test produces them. The current ones are named `color-string-*`.
@adamkudrna
adamkudrna force-pushed the bc/792-remove-note-color branch from def1083 to a86366f Compare November 30, 2026 18:39
@adamkudrna
adamkudrna merged commit 7e0d266 into master Nov 30, 2026
14 checks passed
@adamkudrna
adamkudrna deleted the bc/792-remove-note-color branch November 30, 2026 18:48

This branch was successfully deployed

1 active deployment
pr-preview/pr-800 — a86366f0 Deployed Nov 30, 2026 by adamkudrna via Deploy PR Preview #195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove note feedback color

3 participants