Skip to content

Conversation

@liannab
Copy link
Contributor

@liannab liannab commented Dec 19, 2025

Currently, many styling properties would need to be changed to meet accessibility requirements.
(ex. contrast is poor due to low fontWeight or gradient backgrounds)

This PR adds an optional toggle for accessibilityMode to the visualConfig (default value is false).
Future styling choices, that allow for better screen reader support, can sit behind this toggle.

Pill component was updated for context on how this is intended to be used.

Screenshot 2025-12-19 at 8 43 38 AM Screenshot 2025-12-19 at 10 07 38 AM

@github-actions github-actions bot added docs Issues and Improvements to docs product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment community-contribution PR or Issue raised by member(s) of DataHub Community labels Dec 19, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Dec 19, 2025
@codecov
Copy link

codecov bot commented Dec 19, 2025

Bundle Report

Changes will decrease total bundle size by 1.0kB (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
datahub-react-web-esm 31.27MB -1.0kB (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: datahub-react-web-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-*.js -1.0kB 19.24MB -0.01%

Files in assets/index-*.js:

  • ./src/alchemy-components/components/Pills/Pill.tsx → Total Size: 2.07kB

  • ./src/appConfigContext.tsx → Total Size: 2.67kB

@liannab liannab changed the title Add accessibilityMode to visualConfig for conditional styling feat(ui): Add accessibilityMode to visualConfig for conditional styling Dec 19, 2025
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment docs Issues and Improvements to docs needs-review Label for PRs that need review from a maintainer. product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant