Skip to content
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

Add top padding to accordion section #2640

Merged
merged 1 commit into from
May 24, 2022
Merged

Conversation

owenatgov
Copy link
Contributor

What/Why

Fixes #2608

Adds top padding to the toggleable accordion section so that the touch area between the accordion heading button and any potential touch targets within that accordion section eg: a link aren't too close together.

Visual changes

Before

Open:
Screenshot 2022-05-24 at 09 49 22

Open with hover state:
Screenshot 2022-05-24 at 09 49 28

After

Open:
Screenshot 2022-05-24 at 09 48 48

Open with hover state:
Screenshot 2022-05-24 at 09 48 56

@owenatgov owenatgov changed the title Add section top padding Add top padding to accordion section May 24, 2022
@owenatgov owenatgov requested a review from a team May 24, 2022 08:54
Copy link
Contributor

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

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

I think this makes sense – I did have a brief chat with @christopherthomasdesign as the section heading does feel quite far away from the content now, but given the other constraints at play there wasn't an obvious solution.

@owenatgov owenatgov merged commit c9da8db into main May 24, 2022
@owenatgov owenatgov deleted the accordion-section-padding branch May 24, 2022 13:04
@domoscargin domoscargin mentioned this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accordion touch targets are too close together for touch users
2 participants