8000 App Groups - Make list titles bolder, change color to contrast most for a11y by savathoon · Pull Request #309 · discord/access · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

App Groups - Make list titles bolder, change color to contrast most for a11y #309

New issue
8000

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

Merged
merged 2 commits into from
Jul 1, 2025

Conversation

savathoon
Copy link
Contributor
@savathoon savathoon commented Jun 30, 2025
  • Bugfix for can't toggle accordion list group items before clicking "expand/collapse all"
  • Update title color for better contrast
  • Make font bolder for distinction from description.

@Copilot Copilot AI review requested due to automatic review settings June 30, 2025 22:59
Copilot

This comment was marked as outdated.

@discord discord deleted a comment from Copilot AI Jun 30, 2025
@savathoon savathoon changed the title make list titles bolder, change color to contrast most for a11y App Groups - Make list titles bolder, change color to contrast most for a11y Jul 1, 2025
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The changes here are to make the action group stack vertically before MUI's sm breakpoint after adding the "expand/collapse all" button

Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A fix for the accordion expand/collapse behavior plus styling updates to improve list title contrast and weight for accessibility.

  • Refactored the action group layout to use responsive MUI Box containers.
  • Adjusted accordion expanded logic to remove premature global expansion.
  • Updated list group titles from primary color and default weight to text.accent and fontWeight={500}.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/pages/apps/components/AppsAdminActionGroup.tsx Replaced nested Stack with responsive Box wrappers in layout
src/pages/apps/components/AppsAccordionListGroup.tsx Changed per-item expanded logic and updated title typography color
Comments suppressed due to low confidence (1)

src/pages/apps/components/AppsAccordionListGroup.tsx:167

  • Removing the global isExpanded fallback prevents the 'Expand All' toggle from working as intended; consider restoring || isExpanded to allow the global expand/collapse state to apply.
                <Accordion expanded={expanded[appGroup.name] || false} 

Comment on lines +74 to +93
'@media (max-width: 680px)': {
flexDirection: 'column',
gap: 2,
alignItems: 'stretch',
},
'@media (min-width: 681px)': {
flexDirection: 'row',
gap: 0,
alignItems: 'center',
},
}}>
<Box
sx={{
flex: {xs: 'none', md: '1 1 auto'},
'@media (max-width: 680px)': {
flex: 'none',
},
'@media (min-width: 681px)': {
flex: '1 1 auto',
},
Copy link
Preview
Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

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

[nitpick] The responsive styles duplicate MUI breakpoint logic with custom media queries; you can simplify by relying entirely on MUI's built-in breakpoint syntax (e.g., flexDirection: { xs: 'column', md: 'row' }) and remove the explicit @media blocks.

Suggested change
'@media (max-width: 680px)': {
flexDirection: 'column',
gap: 2,
alignItems: 'stretch',
},
'@media (min-width: 681px)': {
flexDirection: 'row',
gap: 0,
alignItems: 'center',
},
}}>
<Box
sx={{
flex: {xs: 'none', md: '1 1 auto'},
'@media (max-width: 680px)': {
flex: 'none',
},
'@media (min-width: 681px)': {
flex: '1 1 auto',
},
flexDirection: { xs: 'column', md: 'row' },
gap: { xs: 2, md: 0 },
alignItems: { xs: 'stretch', md: 'center' },
}}>
<Box
sx={{
flex: {xs: 'none', md: '1 1 auto'},
flex: { xs: 'none', md: '1 1 auto' },

Copilot uses AI. Check for mistakes.

@savathoon savathoon merged commit dff3c2a into main Jul 1, 2025
6 checks passed
@savathoon savathoon deleted the a11y-app-groups branch July 1, 2025 18:23
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
0