Skip to content

fix(search): ensure cursor in dark variant has correct colour#7845

Draft
nuria1110 wants to merge 1 commit intomasterfrom
FE-7617
Draft

fix(search): ensure cursor in dark variant has correct colour#7845
nuria1110 wants to merge 1 commit intomasterfrom
FE-7617

Conversation

@nuria1110
Copy link
Contributor

fix #7814

Proposed behaviour

When the Search component is rendered with the "dark" variant and no searchButton, the cursor is always white.

Screen.Recording.2026-03-18.at.11.51.43.mov

Current behaviour

When the Search component is rendered with the "dark" variant and no searchButton, the cursor is black when input is empty, which causes colour contrast checks to fail.

Screen.Recording.2026-03-18.at.11.49.51.mov

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

When the Search component is rendered with the "dark" variant and no `searchButton`, the cursor
is black when input is empty, which causes colour contrast checks to fail.
Fix ensures cursor renders with expected colour.

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

Development

Successfully merging this pull request may close these issues.

Menu / Submenu with Search - Axe Colour Contrast Issue with unpopulated field

2 participants