User tests: Successful: Unsuccessful:
Pull Request for Issue #48404 (part 2 of 3: category remove icon). Split from #48795 , one PR per icon.
The small "×" that removes the selected category in the article edit form was faint in its default state (below the WCAG 2.2 SC 1.4.11 minimum of 3:1 in dark mode, and barely above it in light mode). SCSS only (vendor/choicesjs/choices.scss), no PHP/JS changes.
.5 to .75..9. At .75 the dark item background only reaches 2.78:1.1, so the control still changes on hover and focus in both modes. The light-mode focus ring is unchanged.Measured contrast (after opacity compositing, against the item background):
| Control | State | Before | After |
|---|---|---|---|
| Category × | Light, default | 3.05:1 | 6.42:1 |
| Category × | Light, hover / focus | 13.99:1 | 13.99:1 (unchanged) |
| Category × | Dark, default | 2.00:1 | 3.34:1 |
| Category × | Dark, hover / focus | 3.77:1 | 3.77:1 (unchanged) |
| Tags chip × | Light, default | 4.55:1 | 8.22:1 |
| Tags chip × | Dark, default | 2.25:1 | 4.03:1 |
Notes:
--choices__button_joomla-focus-box-shadow: none (_variables-dark.scss), so keyboard focus is shown by the opacity change only. That was .5 → 1 before and is .9 → 1 now. The focus ring itself is not changed here.choices.scss and is not changed here.Apply the PR and run npm ci && npm run build so the Atum CSS is rebuilt. Use Atum in light mode, then repeat in dark mode.
The × is rendered at 50% opacity in both modes, so it looks faint or disabled until hovered or focused: 3.05:1 in light mode, 2.00:1 in dark mode.
Category, light, keyboard focus:
![]()
Category, light, 640px (200% zoom equivalent):

The × is at least 3:1 in its default state in both modes: 6.42:1 in light mode, 3.34:1 in dark mode. Hover and keyboard focus still raise it to full opacity, and the light-mode focus ring is kept. Checked in Firefox (computed and rendered values).
Category, light, keyboard focus:
![]()
Category, light, 640px (200% zoom equivalent):

Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | NPM Change |
I have tested this item ✅ successfully on 4c843a7
I was able to test successfully this PR Fix. Thank you @Nikhil-sinhaa.
1 thing I found - (which MAY be outside of this PR scope):
In Light mode, Category, Link, keyboard focus: blue circular element as you reported.
In Dark mode, Category, Dark, keyboard focus: NOTHING shows...
It seems odd to me that there would be a keyboard focus in Light mode but nothing in Dark mode?
I have tested this item ✅ successfully on 4c843a7
I was able to test successfully this PR Fix. Thank you @Nikhil-sinhaa.
1 thing I found - (which MAY be outside of this PR scope):
In Light mode, Category, Link, keyboard focus: blue circular element as you reported.
In Dark mode, Category, Dark, keyboard focus: NOTHING shows...
It seems odd to me that there would be a keyboard focus in Light mode but nothing in Dark mode?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48803.