Skip to content

🎨 Palette: Add role="status" to EmptyState component#2089

Open
georgi wants to merge 1 commit intomainfrom
palette-empty-state-role-status-3192181885728687824
Open

🎨 Palette: Add role="status" to EmptyState component#2089
georgi wants to merge 1 commit intomainfrom
palette-empty-state-role-status-3192181885728687824

Conversation

@georgi
Copy link
Collaborator

@georgi georgi commented Mar 13, 2026

🎨 Palette: [UX improvement]

💡 What:
Added role="status" to the root <Box> element of the EmptyState component.

🎯 Why:
To ensure that when lists become empty dynamically (e.g., when a user deletes the last item, a search returns zero results, or a network error occurs) and the EmptyState component renders, screen readers will politely announce the empty state's text (e.g., "Nothing here yet") without interrupting the user's current flow.

♿ Accessibility:
role="status" is an ARIA live region role that implicitly sets aria-live="polite" and aria-atomic="true". This is the perfect pattern for dynamic empty states.


PR created automatically by Jules for task 3192181885728687824 started by @georgi

🎨 Palette: [UX improvement]

💡 What:
Added `role="status"` to the root `<Box>` element of the `EmptyState` component.

🎯 Why:
To ensure that when lists become empty dynamically (e.g., when a user deletes the last item, a search returns zero results, or a network error occurs) and the `EmptyState` component renders, screen readers will politely announce the empty state's text (e.g., "Nothing here yet") without interrupting the user's current flow.

♿ Accessibility:
`role="status"` is an ARIA live region role that implicitly sets `aria-live="polite"` and `aria-atomic="true"`. This is the perfect pattern for dynamic empty states.

Co-authored-by: georgi <19498+georgi@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 13, 2026

Deploying nodetool-staging with  Cloudflare Pages  Cloudflare Pages

Latest commit: 940cd0d
Status: ✅  Deploy successful!
Preview URL: https://0b2c3faa.nodetool-staging.pages.dev
Branch Preview URL: https://palette-empty-state-role-sta.nodetool-staging.pages.dev

View logs

@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages
Copy link

Deploying nodetool with  Cloudflare Pages  Cloudflare Pages

Latest commit: 940cd0d
Status: ✅  Deploy successful!
Preview URL: https://598fee22.nodetool.pages.dev
Branch Preview URL: https://palette-empty-state-role-sta.nodetool.pages.dev

View logs

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