Skip to content

Add Hover Effects to Confirmation Modal Buttons#4473

Merged
walterbender merged 6 commits intosugarlabs:masterfrom
AliyanA1:master
Mar 3, 2025
Merged

Add Hover Effects to Confirmation Modal Buttons#4473
walterbender merged 6 commits intosugarlabs:masterfrom
AliyanA1:master

Conversation

@AliyanA1
Copy link
Contributor

Enhanced the confirmation modal in renderClearConfirmation by adding smooth hover effects to the 'Confirm' and 'Cancel' buttons. The 'Confirm' button darkens and the 'Cancel' button on hover, improving user feedback and visual appeal.

simplescreenrecorder-2025-02-28_22.10.22.mp4

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2025

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2025

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

Do these color work for dark mode too? Shouldn't they be defined either in platformstyle.js or css?

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2025

✅ All Jest tests passed! This PR is ready to merge.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2025

✅ All Jest tests passed! This PR is ready to merge.

@AliyanA1
Copy link
Contributor Author

AliyanA1 commented Mar 3, 2025

@walterbender Thanks for the feedback! I’ve updated the code to define the hover colors (blueButtonHover and cancelButtonHover) in platformstyle.js under both light and dark themes. This ensures consistency and proper adaptation to dark mode. I’ve tested it in both modes, and the colors work well with the existing theme. Let me know if there’s anything else to tweak!

@walterbender walterbender merged commit a185f64 into sugarlabs:master Mar 3, 2025
5 checks passed
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