web-illinois / toolkit

This library provides styles and web components for creating branded UIUC websites.
18 stars 7 forks source link

Accordion first pass #531

Closed bryanjonker-illinois closed 7 months ago

bryanjonker-illinois commented 7 months ago

Questions:

I'm happy with this process. Looking forward to talking with you at our meeting.

bryanjonker-illinois commented 7 months ago

Answers:

bryanjonker-illinois commented 7 months ago

@mattsharkey -- updates are done. Let me know what you think.

Tests still fail, but that's because the tests need to choose the button, not the text underneath. I think this will work if you change await page.getByText('Alumni', { exact: true }) to await page.getByRole('button', { name: 'Alumni' }). I think this is a truer test because it confirms the role is button, which is important for assistive technology.

bryanjonker-illinois commented 7 months ago

@mattsharkey -- changes based on our talk are done.

Accessibility notes:

According to the design, header should have a fixed size, no matter which heading level it has. I added the CSS, not sure if this is the right solution?