🎨 Palette: Add role="status" to EmptyState component#2089
🎨 Palette: Add role="status" to EmptyState component#2089
Conversation
🎨 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>
Deploying nodetool-staging with
|
| 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 |
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Deploying nodetool with
|
| 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 |
🎨 Palette: [UX improvement]
💡 What:
Added
role="status"to the root<Box>element of theEmptyStatecomponent.🎯 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
EmptyStatecomponent 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 setsaria-live="polite"andaria-atomic="true". This is the perfect pattern for dynamic empty states.PR created automatically by Jules for task 3192181885728687824 started by @georgi