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

[DX] Find a more robust way to handle #indentation in CSS #6085

Open
klonos opened this issue Apr 28, 2023 · 1 comment
Open

[DX] Find a more robust way to handle #indentation in CSS #6085

klonos opened this issue Apr 28, 2023 · 1 comment
Assignees

Comments

@klonos
Copy link
Member

klonos commented Apr 28, 2023

This is a follow-up to #5999 which (hopefully) with the help of the changes that went in with #6028 will help us handle indentation in a better way at some point in the future (and this is a placeholder issue to do just that). As I said in #6028:

Since the current solution was based on CSS classes, it is limited to only handling indentation depths from 0 to 5, which is not as robust. I'm hoping that the addition of this new data-* attribute, which holds the indentation depth as its value, can be used by contrib and custom code to provide a better solution for indentation, either based on custom JS, or in core in the future (when there's better browser support for CSS calculations that include data-* attributes).

@klonos klonos self-assigned this Apr 28, 2023
@klonos
Copy link
Member Author

klonos commented Apr 28, 2023

to-do: find the time to outline the findings of the research around CSS, calculated values, and data attributes (long story short is that it is not currently possible, but could be in the future)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant