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

Refactor element-specific behavior out of ListModel #8212

Open
wants to merge 4 commits into
base: dev-mail
Choose a base branch
from

Conversation

paw-hub
Copy link
Contributor

@paw-hub paw-hub commented Jan 3, 2025

No description provided.

The issue was caused by the more button having a parent element with a
`role="button"` resulting in the more button having a role of
"presentation".

To fix this, click handling was moved to a more button's sibling element
(mail sender text).

Close #8183
@paw-hub paw-hub force-pushed the refactor-listmodel branch 5 times, most recently from 370a923 to 0526659 Compare January 3, 2025 14:13
@paw-hub paw-hub changed the title WIP: Refactor element-specific behavior out of ListModel Refactor element-specific behavior out of ListModel Jan 3, 2025
Co-authored-by: paw-hub <[email protected]>
@paw-hub paw-hub marked this pull request as ready for review January 6, 2025 17:19
We do not want ListModel to specifically only work on ListElement types,
or even element types in general. As such, we generalize it to a list of
some kind of elements with some kind of ID, even if these are not types
that would be stored remotely as part of the model.

Co-authored-by: hrb-hub <[email protected]>
@paw-hub paw-hub force-pushed the refactor-listmodel branch from 0526659 to 931b436 Compare January 6, 2025 17:22
@paw-hub paw-hub linked an issue Jan 7, 2025 that may be closed by this pull request
3 tasks
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.

Refactor ListModel to separate Entity concerns from List concerns
2 participants