Skip to content

chore: convert remaining /next components from BEM to flat class names #5104

Description

@millus

Several `/next` components were built before the flat class name convention was established and still use BEM (`__` element separators, `--` modifier suffixes). These should be updated to use simple flat class names scoped by CSS nesting, as documented in AGENTS.md.

Components to update

  • Radio
  • Checkbox
  • Input
  • Field
  • Switch
  • TextField
  • Banner

Breaking change

Renaming CSS classes is a breaking change for any consumer who is targeting these class names directly in their own CSS (e.g. `.eds-field__helper-message { color: red }`). Each fix should be committed as `fix!:` and the class name changes documented in the PR description so consumers know what to update.

Testing checklist (per component PR)

  • Update any snapshot tests that reference the old class names
  • Verify the component visually in Storybook matches the Figma design
  • Confirm `jest-axe` still passes after the rename

Related

ADR 0006 documenting the flat class name convention and superseding the BEM-inspired naming in ADR 0002 is in #5134.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions