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

Remove data-id assignment for layer-view element #1633

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

dbauszus-glx
Copy link
Member

A data-id is not a class!

A data-id is a pseudo id as the nomination suggests.

The data-id for a layer view/drawer element should be the layer.key.

The data-id for a [layer] group view/drawer should be the group id.

There should not be a queryselector for data-id=layer-drawer which is better solved with a combo class eg. .layer-view.drawer

@dbauszus-glx dbauszus-glx added Code Issues related to the code structure and performance. UI labels Oct 30, 2024
@dbauszus-glx dbauszus-glx linked an issue Oct 30, 2024 that may be closed by this pull request
@RobAndrewHurst RobAndrewHurst changed the base branch from main to patch October 31, 2024 14:22
Copy link

Copy link
Member

@cityremade cityremade left a comment

Choose a reason for hiding this comment

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

this looks good.
Click on layer toggle now has better access to layer key 👍

@RobAndrewHurst RobAndrewHurst merged commit 4f4d60b into GEOLYTIX:patch Nov 1, 2024
6 checks passed
@dbauszus-glx dbauszus-glx deleted the layer-view-data-id branch November 27, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Issues related to the code structure and performance. UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layer display toggle button has no layer identifier.
4 participants