-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
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
ErrorFormTooltip accessibility #4652
base: master
Are you sure you want to change the base?
Conversation
Storybook staging is available at https://kiwicom-orbit-domi-error-tooltip-a11y.surge.sh Playroom staging is available at https://kiwicom-orbit-domi-error-tooltip-a11y.surge.sh/playroom |
Size Change: -276 B (-0.06%) Total Size: 463 kB
ℹ️ View Unchanged
|
Deploying orbit with
|
Latest commit: |
805f7fe
|
Status: | ✅ Deploy successful! |
Preview URL: | https://ee036703.orbit.pages.dev |
Branch Preview URL: | https://domi-error-tooltip-a11y.orbit.pages.dev |
77de0f4
to
c026478
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key Issues
The lack of error handling and validation props in InputGroup
components could lead to incomplete error state management and accessibility issues. The ariaHidden
prop defaults to hiding the chevron icon from screen readers, potentially affecting accessibility if the icon indicates collapse state. Changing label
type from Common.Translation
to string
may cause type errors and break existing code relying on translation objects.
9e89908
to
6a178ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the ErrorForm.stories file, please remove the TextLink elements from inside the tooltip. We don't want to encourage using links inside tooltips 🙂
...eld/InputField.ct.tsx-snapshots/visual-InputField-screenshot-help-focus-1-Desktop-darwin.png
Outdated
Show resolved
Hide resolved
docs/src/documentation/05-development/04-migration-guides/01-v22.mdx
Outdated
Show resolved
Hide resolved
6a178ea
to
8cdbeb6
Compare
LLM Analysis of PR ChangesPull Request Analysis - /pull/4652 - ErrorFormTooltip accessibility1. Summary of the changes: This pull request focuses on improving the accessibility of the The key changes are:
2. Potential issues or bugs you notice:
3. Suggestions for improvements:
4. Any security concerns:
5. Code quality observations:
Overall Feedback: This pull request seems to be a step in the right direction for improving the accessibility and consistency of the Orbit component library by simplifying the However, the version downgrades are a significant red flag and must be investigated and clarified immediately. Additionally, ensure you thoroughly validate the accessibility improvements, provide clear documentation for the breaking change, and justify the icon deletion. Address the suggestions for improvements provided above to enhance the quality and clarity of this PR before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please organize the commits.
💡 would it make sense to have a codemod to remove the deleted props from the components?
BREAKING CHANGE: The ErrorFormTooltip no longer renders the Close button as tooltip can not contain interactive elements.
8cdbeb6
to
59efd48
Compare
LLM Analysis of PR ChangesOkay, I've analyzed the provided Git diff. Here's my feedback: Pull Request Feedback: /pull/4652 - ErrorFormTooltip accessibility1. Summary of ChangesThis pull request primarily focuses on improving the accessibility and simplifying the API of the Essentially, this change enforces a consistent behavior for help tooltips: they are now always closable by clicking outside the tooltip or when the associated input element loses focus. The explicit "close" button and the Alongside the code modifications, the pull request includes:
2. Potential Issues or Bugs
3. Suggestions for Improvements
4. Security Concerns
5. Code Quality Observations
Overall: This pull request appears to be a well-thought-out and executed change that improves the accessibility and simplifies the API of the Recommendations:
After addressing these minor suggestions, the pull request looks good to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key Issues
The use of aria-hidden={!shown}
conflicts with aria-live="polite"
, as it prevents screen readers from announcing changes when the tooltip is hidden.
aria-live="polite" | ||
aria-hidden={!shown} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐛 Possible Bug
Setting aria-hidden={!shown}
while maintaining aria-live="polite"
is contradictory. When the tooltip is hidden, screen readers won't announce changes due to aria-hidden, making aria-live ineffective.
aria-live="polite" | |
aria-hidden={!shown} | |
aria-live="polite" |
BREAKING CHANGE: The InputField component no longer accepts the helpClosable prop, since the help tooltip no longer renders the Close button.
BREAKING CHANGE: The InputFile component no longer accepts the helpClosable prop, since the help tooltip no longer renders the Close button.
BREAKING CHANGE: The InputGroup component no longer accepts the helpClosable prop, since the help tooltip no longer renders the Close button.
BREAKING CHANGE: The InputSelect component no longer accepts the helpClosable prop, since the help tooltip no longer renders the Close button.
BREAKING CHANGE: The Select component no longer accepts the helpClosable prop, since the help tooltip no longer renders the Close button.
BREAKING CHANGE: The Textarea component no longer accepts the helpClosable prop, since the help tooltip no longer renders the Close button.
59efd48
to
805f7fe
Compare
LLM Analysis of PR ChangesOkay, I've analyzed the provided Git diff from pull request /pull/4652. Here's my feedback: Pull Request Analysis - Orbit #4652: ErrorFormTooltip accessibility1. Summary of ChangesThis pull request primarily focuses on improving the accessibility of the
2. Potential Issues or Bugs
3. Suggestions for Improvements
4. Security Concerns
5. Code Quality Observations
Overall Feedback: This pull request seems to be a positive step towards improving the accessibility and consistency of the Actionable Feedback Summary:
By addressing these points, the pull request can be further strengthened and ensure a smooth and positive experience for users migrating to Orbit v22. |
Part of https://kiwicom.atlassian.net/browse/FEPLT-2247
✨
Description by Callstackai
This PR updates the
ErrorFormTooltip
component by removing thehelpClosable
prop and adjusting related components accordingly. It also includes updates to documentation and tests reflecting these changes.Diagrams of code changes
Files Changed
helpClosable
prop.helpClosable
prop fromErrorFormTooltip
and adjusted related logic.helpClosable
prop.helpClosable
from the props interface.helpClosable
from story definitions.helpClosable
from the InputField story.helpClosable
from InputFile story.helpClosable
from InputGroup story.helpClosable
from InputSelect story.helpClosable
from Textarea story.This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.mdx
,.md
. See list of supported languages.