Skip to content

Change the PivotButton to have proper design#802

Merged
SjurSutterudSagen merged 8 commits intomainfrom
PxWeb2-763-change-pivot-button-to-correct-looks
Aug 22, 2025
Merged

Change the PivotButton to have proper design#802
SjurSutterudSagen merged 8 commits intomainfrom
PxWeb2-763-change-pivot-button-to-correct-looks

Conversation

@SjurSutterudSagen
Copy link
Contributor

This changes the PivotButton to have the correct design and aria functionality. Refactored the ActionItem slightly, so it can have different label and aria-label.

This changes the PivotButton to have the correct design and
aria functionality. Refactored the ActionItem slightly, so it can have
different label and aria-label.
@github-actions
Copy link

github-actions bot commented Aug 18, 2025

Branch Deployment to Cloudflare Pages

🚛 Preview URL: https://e9e6d2de.pxweb2.pages.dev
🚧 Branch preview URL: https://pxweb2-763-change-pivot-butt.pxweb2.pages.dev

This expands the PivotButton component in DrawerEdit, so it gives two
different texts to screen readers to read. The first one if the text of
the button, when it is focused. The second texts is the new, order of
the variables, like they currently are shown in the title of the table.
Add so the PivotButton has 3 texts from translations.

1. The button text that is shown
2. The aria-label text that screen readers read on focusing the button
3. The screen reader announcement that is read after pivoting
Fix missing labels in the DrawerSave component, due to the ActionItem
implementation having changed. Also expanded tests for the save to file
functionality of the DrawerSave component, since there were no tests
for that, only other functionality inside the DrawerSave component.

Used GPT-5 (preview) in CoPilot to help and generate much of this.
However, decided to not implement some tests for more flakey
implementations, like the "more than 5 seconds" announcement.
@sonarqubecloud
Copy link

Copy link
Contributor

@MikaelNordberg MikaelNordberg left a comment

Choose a reason for hiding this comment

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

Looks good

@SjurSutterudSagen SjurSutterudSagen merged commit 3276f03 into main Aug 22, 2025
14 checks passed
@SjurSutterudSagen SjurSutterudSagen deleted the PxWeb2-763-change-pivot-button-to-correct-looks branch August 22, 2025 11:31
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.

2 participants