Skip to content

Comments

fix(ui-byline): remove figure and figcaption#1976

Merged
joyenjoyer merged 1 commit intomasterfrom
byline_test
May 16, 2025
Merged

fix(ui-byline): remove figure and figcaption#1976
joyenjoyer merged 1 commit intomasterfrom
byline_test

Conversation

@joyenjoyer
Copy link
Contributor

@joyenjoyer joyenjoyer commented May 15, 2025

INSTUI-4549

Test plan:

  1. Go through a Byline example in the docs app with NVDA and VoiceOver, make sure no figure of figcaption is read by SR apps.

@github-actions
Copy link

github-actions bot commented May 15, 2025

PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-05-16 09:36 UTC

maxWidth={this.props.styles?.maxWidth}
>
<div css={this.props.styles?.figure}>{this.props.children}</div>
<figcaption css={this.props.styles?.caption}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was introduced in 2016. The use of <figure> and <figcaption> (which NVDA announces unnecessarily) is no longer needed for proper screen reader support.

@joyenjoyer joyenjoyer requested review from HerrTopi and git-nandor May 15, 2025 14:13
@joyenjoyer joyenjoyer merged commit 72af55e into master May 16, 2025
8 checks passed
@joyenjoyer joyenjoyer deleted the byline_test branch May 16, 2025 09:35
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.

3 participants