Skip to content

fix(ui-alerts,console): remove Alert live-region role warning - #2664

Draft
ToMESSKa wants to merge 1 commit into
masterfrom
INSTUI-5131-alert-wants-role-alert-added-to-live-region
Draft

fix(ui-alerts,console): remove Alert live-region role warning#2664
ToMESSKa wants to merge 1 commit into
masterfrom
INSTUI-5131-alert-wants-role-alert-added-to-live-region

Conversation

@ToMESSKa

@ToMESSKa ToMESSKa commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

…x console log messages

INSTUI-5131

ISSUE:

  • Alert warns that your live region must have role="alert", but role="alert" means assertive per WAI-ARIA, so even when you'd set liveRegionPoliteness="polite" (non-assertive), you got a warning asking for role="alert". It was likely a leftover before the liveRegionPoliteness prop was added. GitHub issue: Alert wants role="alert" added to live region #2276

Setting role="alert" is equivalent to setting aria-live="assertive" and aria-atomic="true". [...] Dynamic changes that are less urgent should use a less aggressive method, such as including aria-live="polite" or using an other live region role like status.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/alert_role

TEST PLAN:

  • test this example, it should not emit a warning

@ToMESSKa ToMESSKa self-assigned this Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2664/

Built to branch gh-pages at 2026-07-29 07:35 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

github-actions Bot pushed a commit that referenced this pull request Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Visual regression report

⚠️ Changes detected.

Status Count
Unchanged 0
Changed 1
New 96
Removed 32

📊 View full report

Diff images (33)

alert.png — baseline no longer produced

avatar.png — baseline no longer produced

badge.png — baseline no longer produced

billboard.png — baseline no longer produced

breadcrumb.png — baseline no longer produced

button-and-derivatives.png — baseline no longer produced

byline.png — baseline no longer produced

calendar.png — baseline no longer produced

checkbox.png — baseline no longer produced

checkboxgroup.png — baseline no longer produced

colorpicker.png — baseline no longer produced

contextview.png — baseline no longer produced

custom-and-lucide-icons.png — baseline no longer produced

dateinput-dateinput2.png — baseline no longer produced

datetimeinput.png — baseline no longer produced

diff-demo.png — 6324 pixels differ

drilldown.png — baseline no longer produced

filedrop.png — baseline no longer produced

form-errors.png — baseline no longer produced

heading.png — baseline no longer produced

img.png — baseline no longer produced

link.png — baseline no longer produced

menu.png — baseline no longer produced

metric-pill-tag-timeselect-text.png — baseline no longer produced

options.png — baseline no longer produced

pagination.png — baseline no longer produced

progressbar.png — baseline no longer produced

select-simpleselect.png — baseline no longer produced

table.png — baseline no longer produced

tabs.png — baseline no longer produced

tooltip.png — baseline no longer produced

treebrowser.png — baseline no longer produced

view.png — baseline no longer produced

Baselines come from the visual-baselines branch. They refresh on every merge to master.

@ToMESSKa ToMESSKa changed the title fix(ui-alerts,console): correct Alert live-region role warning and fi… fix(ui-alerts,console): correct Alert live-region role warning Jul 30, 2026
@ToMESSKa ToMESSKa changed the title fix(ui-alerts,console): correct Alert live-region role warning fix(ui-alerts,console): remove Alert live-region role warning Jul 30, 2026
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.

1 participant