-
Notifications
You must be signed in to change notification settings - Fork 12
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
Upward opening accordions #1578
Conversation
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.
Hey @mandla-noredink! I am not really sure how to review this one. I see the upwards accordion working, but it's pretty far from what we are trying to do in the Dashboard notification.
I am assuming this is a first step towards that. If it is just a better implementation strategy to add the component variant and use it as a building block for the upsell notification, that makes sense.
Just noting that I don't think we would ever use this upwards accordion component as it is here.
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.
Hey @mandla-noredink ! I don't think this should be an accordion in terms of accessibility. The behavior is different as "show more" expands a content that was already partially visible. So SR announcements should be handled in specific way. We can discuss ways of making these notifications accessible. Let me know if I'm missing something.
Edit: Kristine and I looked closer at the figma, and we think an accordion might be a suitable option. Do you want to sync on this @mandla-noredink @ravi-morbia ?
Hey @charbelrami I don't have a real stake in how this is built. Just wanted to note that this variant of the component might never be used on its own. But I could be wrong. Either way, I'm good with this approach if it makes sense from a dev and a11y standpoint. |
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.
@mandla-noredink I think it will be good to merge after implementing @bcardiff suggestion!
thanks @ravi-morbia! I think that from an a11y and dev perspectives it makes sense in terms os similar behavior and html attributes, even with visual differences |
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.
just updating to "request changes"
Hey Charbel, the changes have been made, dismissing the review so we can get this merged
🔧 Modifying a component
Context
This PR makes it so accordions can be set to open either downwards or upwards, to facilitate the notification design in the Premium Vouchers Upsell Notification project.
🖼️ What does this change look like?
Component completion checklist
nriDescription