Draft improved voting buttons fix#140
Conversation
Co-authored-by: osiastedian <osiastedian@gmail.com>
|
Cursor Agent can help with this pull request. Just |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Improve voting buttons with enhanced design, clearer labels, better visual feedback, and accessibility features to address UX and clarity issues. Addresses #102
This PR updates the voting buttons to use more intuitive icons (thumbs-up/down, pause), adds clear text labels (YES, ABSTAIN, NO), and provides descriptive tooltips. It also includes enhanced visual feedback (hover effects, color-coding), accessibility improvements (ARIA labels, keyboard navigation), and full internationalization support.
PR Type
Enhancement
Description
Improved voting buttons design.
Added clear labels (YES/NO/ABSTAIN).
Enhanced visual feedback and accessibility.
Internationalization support.
Diagram Walkthrough
flowchart LR A[Governance List] --> B{ProposalCard}; B --> C[Voting Buttons]; C --> D((YES/NO/ABSTAIN)); C --> E((Tooltips & ARIA)); C --> F((Visual Feedback)); A --> G[Locale Files]; G --> D; G --> E;File Walkthrough
index.js
Added Vote Labels, Tooltips, and ARIA to Locale Filessrc/shared/locales/en/partials/govlist/index.js
votesection with YES, NO, ABSTAIN labels, tooltips, andARIA attributes.
_tables.scss
Redesigned Voting Button Stylessrc/scss/_tables.scss
ProposalCard.jsx
Updated ProposalCard Voting Buttonssrc/components/governance/ProposalCard.jsx