Skip to content

[APP-1741][APP-1742][APP-1743] add components, calc contrast ratio, a…#346

Merged
DinetsV merged 17 commits intodevelopfrom
feature/APP-1741-add-components
Jul 25, 2025
Merged

[APP-1741][APP-1742][APP-1743] add components, calc contrast ratio, a…#346
DinetsV merged 17 commits intodevelopfrom
feature/APP-1741-add-components

Conversation

@DinetsV
Copy link
Contributor

@DinetsV DinetsV commented Jul 21, 2025

…dd logic for lightness

✨ PR Description

Purpose: Add color contrast components for accessibility assessment and implement color adjustment functionality in the accessibility scanner.
Main changes:

  • Created ColorContrastForm component with color pickers and contrast ratio calculation
  • Added utilities for color conversion and contrast ratio calculation
  • Refactored AltTextNavigation to reusable FormNavigation component
  • Added pointer-events handling to scanner UI elements

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀

gitstream-cm[bot]

This comment was marked as resolved.

…-set.js

Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
gitstream-cm[bot]

This comment was marked as resolved.

sx={{ width: '150px' }}
onChange={onChangeColor}
/>
<SunIcon />
Copy link
Contributor

Choose a reason for hiding this comment

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

role="presentation"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added to the icon

}}
/>
<StyledColorDisplay sx={{ background: color }} />
<IconButton onClick={resetColor} size="tiny">
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add an aria-label

{title}
</Typography>
<StyledColorSet>
<SunOffIcon />
Copy link
Contributor

Choose a reason for hiding this comment

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

role="presentation"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added to the icon

</Typography>
<StyledColorSet>
<SunOffIcon />
<Slider
Copy link
Contributor

Choose a reason for hiding this comment

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

It should have a label, bc a screen reader only announces a value with no other context.


return (
<Box>
<Typography variant="body2" as="h5">
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure it can be considered as a title. To me as="p" seems more appropriate.
Ideally, it should be a , but I don't see any form elements inside the slider component

return (
<StyledBox>
<Divider />
<Typography variant="body2" as="h4">
Copy link
Contributor

@pkniazevych pkniazevych Jul 22, 2025

Choose a reason for hiding this comment

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

I'm not sure it can be considered as a title. To me as="p" seems more appropriate.

Copy link
Contributor

@pkniazevych pkniazevych left a comment

Choose a reason for hiding this comment

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

Left some comments

gitstream-cm[bot]

This comment was marked as resolved.

DinetsV and others added 2 commits July 23, 2025 18:25
…-set.js

Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
…-set.js

Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
gitstream-cm[bot]

This comment was marked as resolved.

gitstream-cm[bot]

This comment was marked as resolved.

DinetsV and others added 2 commits July 23, 2025 18:29
Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
gitstream-cm[bot]

This comment was marked as resolved.

gitstream-cm[bot]

This comment was marked as resolved.

gitstream-cm[bot]

This comment was marked as resolved.

gitstream-cm[bot]

This comment was marked as resolved.

gitstream-cm[bot]

This comment was marked as resolved.

Copy link
Contributor

@gitstream-cm gitstream-cm bot left a comment

Choose a reason for hiding this comment

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

✨ PR Review

LGTM

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀

@DinetsV DinetsV merged commit 43f1b2c into develop Jul 25, 2025
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants