bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Fix list group action item color

Open mturac opened this issue 5 months ago • 1 comments

Description

Fixes #41725.

List group action items and disabled items both resolved to the secondary text color, which made enabled action items look disabled in the links/buttons example, especially in dark mode.

This changes the action item color variable to follow the regular list group item color instead. Default action items now use the normal list group text color, contextual list group variants continue to inherit their variant text color through --bs-list-group-color, and disabled items keep using the disabled color.

No generated dist/ files are committed.

Testing

  • npm run css-test (48 specs, 0 failures)
  • npx stylelint scss/_variables.scss scss/tests/components/_list-group.test.scss
  • npm run css-lint-stylelint
  • npm run css-lint-vars
  • npx sass --style expanded --no-source-map scss/bootstrap.scss /tmp/bootstrap-41725.css
  • git diff --check

mturac avatar Jun 13 '26 22:06 mturac

After opening this, I noticed #41777 is also open for #41725. This PR takes a slightly different route: it keeps the fix at the Sass variable level by making the action color follow --bs-list-group-color, which also preserves contextual list group variant colors, and adds Sass regression coverage for the disabled/action color split. Happy to defer or close this if maintainers prefer to continue with #41777.

mturac avatar Jun 13 '26 22:06 mturac

Slating for v5.4.0, I think we can let this diverge from v6 if we do release a v5.4.0.

mdo avatar Jun 26 '26 17:06 mdo