Skip to content

fix(a11y): use <strong> for model titles to convey emphasis semantically#10876

Open
rkdfx wants to merge 1 commit into
swagger-api:masterfrom
rkdfx:a11y/9571-strong-for-model-title
Open

fix(a11y): use <strong> for model titles to convey emphasis semantically#10876
rkdfx wants to merge 1 commit into
swagger-api:masterfrom
rkdfx:a11y/9571-strong-for-model-title

Conversation

@rkdfx
Copy link
Copy Markdown

@rkdfx rkdfx commented May 9, 2026

Description

Replace <span class="model-title"> (and one <div class="json-schema-2020-12__title">) with semantic <strong> elements so assistive technology receives the emphasis cue that sighted users get from font-weight.

Motivation and Context

Fixes #9571.

Screenshots (if appropriate):

Checklist

My PR contains...

  • No code changes (src/ is unmodified: changes to documentation, CI, metadata, etc.)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes to a public API (config options, System API, major UI change, etc).
  • are breaking changes to a private API (Redux, component props, utility functions, etc.).
  • are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
  • are not breaking changes.

Documentation

  • My changes do not require a change to the project documentation.
  • My changes require a change to the project documentation.
  • If yes to above: I have updated the documentation accordingly.

Automated tests

  • My changes can not or do not need to be tested.
  • My changes can and should be tested by unit and/or integration tests.
  • If yes to above: I have added tests to cover my changes.
  • If yes to above: I have taken care to cover edge cases in my tests.
  • All new and existing tests passed.

Signed-off-by: Ravi <13908473+rkdfx@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

a11y: Replace font-weight with <strong> to convey semantic meaning

1 participant