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

Collabsible UI Elements: Make the whole header clickable #16181

Open
patrickatwsrn opened this issue May 12, 2022 · 0 comments
Open

Collabsible UI Elements: Make the whole header clickable #16181

patrickatwsrn opened this issue May 12, 2022 · 0 comments
Labels
feature Request about implementing a brand new function or possibility.

Comments

@patrickatwsrn
Copy link

patrickatwsrn commented May 12, 2022

Feature request

Summary

Collapsing panels can be opened and closed by clocking a tiny (18x18px) up/down icon on the right side of the panel header.

It would be far easier, if the whole header would trigger this behaviour.

image

image

Why is it needed?

Familiar behaviour

A similar behavior can be found in many ui frameworks. So I'd argue that it is familiar concept for many users.

Conflicting with WCAG Standards:

The clickable area is much to small. Current recommendations are at least 44x44 (see: https://dequeuniversity.com/resources/wcag2.1/2.5.5-target-size)

Suggested solution(s)

A clear and concise description of what you want to happen.

The current styling of the headline is also lacking height (29px)

image

I guess this could be solved with 13px padding-bottom / padding -top and a negative margin-top of 13px;

.x-panel-header {
margin: -13px 0 0 0;
padding: 13px 0;
}

.x-panel-collapsed .x-panel-header {
margin: 0;
}

image

Related issue(s)/PR(s)

MODx 3.x

Cheers,

Patrick

@patrickatwsrn patrickatwsrn added the feature Request about implementing a brand new function or possibility. label May 12, 2022
@patrickatwsrn patrickatwsrn changed the title Collabsible UI Elements Make the whole header clickable Collabsible UI Elements: Make the whole header clickable May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request about implementing a brand new function or possibility.
Projects
None yet
Development

No branches or pull requests

1 participant