Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BACKLOG-21345: Add data attribute for tree item depth #411

Merged
merged 3 commits into from
May 14, 2024

Conversation

gflores-jahia
Copy link
Contributor

@gflores-jahia gflores-jahia commented Dec 19, 2023

JIRA

https://jira.jahia.org/browse/BACKLOG-21345

Description

Ran into an issue trying to select tree item for a given tree depth using style attribute.

Add a dedicated data attribute for specifying tree item depth to simplify css attribute selection.

Related PR context: Jahia/jcontent#1129 (comment)

Copy link
Collaborator

@ffffffelix ffffffelix left a comment

Choose a reason for hiding this comment

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

I propose to use the attribute aria-level to add the depth information on the element (MDN documentation)
What do you think?

@ffffffelix ffffffelix added the bug label Dec 20, 2023
@gflores-jahia gflores-jahia merged commit 05a4230 into develop May 14, 2024
3 checks passed
@gflores-jahia gflores-jahia deleted the BACKLOG-21345 branch May 14, 2024 16:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants