-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[CL-500] Add disclosure component and directive #11865
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #11865 +/- ##
==========================================
- Coverage 33.59% 33.59% -0.01%
==========================================
Files 2825 2829 +4
Lines 88289 88310 +21
Branches 16834 16835 +1
==========================================
+ Hits 29658 29665 +7
- Misses 56308 56322 +14
Partials 2323 2323 ☔ View full report in Codecov by Sentry. |
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.
✅ Verified default, hover, selected, and focus styles match Figma
✅ Verified SR announcements with VO in Chrome match Figma
✅ Verified on click content his shown/hidden
Should we call out in the Disclosure docs "Accessibility" section to be sure to still follow the accessibility guidelines for the button/icon-button triggering the element? (I'm specifically thinking of the icon-button here hoping folks wont' forget to use the appA11yTitle
)
libs/components/src/disclosure/disclosure-trigger-for.directive.ts
Outdated
Show resolved
Hide resolved
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.
This looks great!
fdb0434
to
42f9779
Compare
The base branch was changed.
Rebased to |
Fixed Issues
|
🎟️ Tracking
CL-500
📔 Objective
This PR adds a
disclosure
component and accompanying directive that controls the disclosure's visibility. It also addsicon-button
styling to handle the appearance of themuted
variant button when its disclosure area is expanded. (This functionality is not behind a feature flag, but will only affect icon buttons used with the disclosure.)Changes to the
icon-button
documentation files are remnants of a prior approach, but they still improve the documentation so I'm leaving them in here.📸 Screenshots
Screen.Recording.2024-11-06.at.10.44.06.AM.mov
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes