[FR] Allow defining a part of id #157
ildar170975
started this conversation in
Feature Requests
Replies: 2 comments
-
|
might be good to add the link to the card-mod discussion we had here https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/8307?u=mariusthvdb I would welcome the idea of a fixed extra id attribute, because currently we can Not use the available
because they change upon each reload of the view. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Believe this is also linked, as it asks for dynamic labels, and icons are mentioned #94 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently tabs have ids like:

Imagine we have a new option (per-tab):
Then the tab will get an id like
where
SOME_NUMBERcould be generated like it is already now,SOME_PREFIXcould bemdc-tab(like it is already now).Examples:
This could be used in card-mod to address tabs.
Currently users have to use smth like
nth-child(xxx)selectors.With new ids it will be possible to use selectors like
mwc-tab[id*='{{...}}'].Beta Was this translation helpful? Give feedback.
All reactions