-
Notifications
You must be signed in to change notification settings - Fork 1
style(ui): standardise empty states and filter bars across committee tabs, mailing list members, and transactions #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7e08f4d
6e942d3
eabd772
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,13 +34,11 @@ | |||||||||||||||||||||||||
| data-testid="committee-surveys-empty-create-btn"></lfx-button> | ||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
| <lfx-card> | ||||||||||||||||||||||||||
| <div class="flex flex-col items-center py-12"> | ||||||||||||||||||||||||||
| <i class="fa-light fa-chart-simple text-3xl text-gray-300 mb-3" aria-hidden="true"></i> | ||||||||||||||||||||||||||
| <p class="text-sm font-medium text-gray-600">No surveys yet</p> | ||||||||||||||||||||||||||
| <p class="text-xs text-gray-400 mt-1">Surveys for this committee will appear here.</p> | ||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
| </lfx-card> | ||||||||||||||||||||||||||
| <lfx-empty-state | ||||||||||||||||||||||||||
| icon="fa-light fa-chart-simple" | ||||||||||||||||||||||||||
| title="No surveys yet" | ||||||||||||||||||||||||||
| subtitle="Surveys for this committee will appear here."> | ||||||||||||||||||||||||||
| </lfx-empty-state> | ||||||||||||||||||||||||||
|
Comment on lines
+37
to
+41
|
||||||||||||||||||||||||||
| <lfx-empty-state | |
| icon="fa-light fa-chart-simple" | |
| title="No surveys yet" | |
| subtitle="Surveys for this committee will appear here."> | |
| </lfx-empty-state> | |
| <div class="flex flex-col items-center justify-center gap-3 py-8 text-center"> | |
| <i class="fa-light fa-chart-simple text-4xl" aria-hidden="true"></i> | |
| <div class="flex flex-col gap-1"> | |
| <div class="text-lg font-semibold">No surveys yet</div> | |
| <div class="text-sm">Surveys for this committee will appear here.</div> | |
| </div> | |
| </div> |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,13 +35,11 @@ | |||||||||||||||||||||
| data-testid="committee-votes-empty-create-btn"></lfx-button> | ||||||||||||||||||||||
| </div> | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| <lfx-card> | ||||||||||||||||||||||
| <div class="flex flex-col items-center py-12"> | ||||||||||||||||||||||
| <i class="fa-light fa-check-to-slot text-3xl text-surface-300 mb-3" aria-hidden="true"></i> | ||||||||||||||||||||||
| <p class="text-sm font-medium text-muted-color">No votes yet</p> | ||||||||||||||||||||||
| <p class="text-xs text-surface-400 mt-1">Votes for this committee will appear here.</p> | ||||||||||||||||||||||
| </div> | ||||||||||||||||||||||
| </lfx-card> | ||||||||||||||||||||||
| <lfx-empty-state | ||||||||||||||||||||||
| icon="fa-light fa-check-to-slot" | ||||||||||||||||||||||
| title="No votes yet" | ||||||||||||||||||||||
| subtitle="Votes for this committee will appear here."> | ||||||||||||||||||||||
| </lfx-empty-state> | ||||||||||||||||||||||
|
Comment on lines
+38
to
+42
|
||||||||||||||||||||||
| <lfx-empty-state | |
| icon="fa-light fa-check-to-slot" | |
| title="No votes yet" | |
| subtitle="Votes for this committee will appear here."> | |
| </lfx-empty-state> | |
| <div class="flex flex-col items-center justify-center gap-3 py-8 text-center"> | |
| <i class="fa-light fa-check-to-slot text-4xl" aria-hidden="true"></i> | |
| <div class="text-lg font-semibold">No votes yet</div> | |
| <div class="text-sm text-gray-600">Votes for this committee will appear here.</div> | |
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to lfx-empty-state removes the previous aria-hidden="true" on the decorative icon. EmptyStateComponent currently renders its without aria-hidden, which can cause screen readers to announce the icon class/name. Consider updating lfx-empty-state to set aria-hidden="true" on the icon (or provide an input to control it) to avoid this accessibility regression.