What I am doing:
Using the layout-card editor in an experimental sections view, without previously navigating to a non-sections view (to prevent mwc-tab-bar from being loaded and available for custom cards to use) or refreshing the page after using the add card dialog.
What I expected to happen:
mwc-tab-bar to render like it does on traditional views.
What happened instead:
mwc-tab-bar doesn't seem to load in the new sections view. Custom cards that reference it end up not loading anything.
Minimal steps to reproduce:
Create a new view of type Sections (experimental).
Click the add card button in a section.
Note the mwc-tab-bar element in use at the top of the add card dialog.
Add a Custom: Layout Card. Note how the layout/cards tab bar is visible.
Save the layout card and then refresh the page.
Edit the previously created layout card. Note how that since no Home Assistant elements loaded mwc-tab-bar, it does not render in the layout card editor.
I ran into this issue with the config UI of one of my custom cards as well. I ended up switching to paper-tabs as those should always be present in Home Assistant views due to their use as the view buttons and the config/visibility/layout selector.
By putting an X in the boxes ([X]) below, I indicate that I:
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
My Home Assistant version: 2024.7.0
Layout-card version (FROM BROWSER CONSOLE):
What I am doing: Using the layout-card editor in an experimental sections view, without previously navigating to a non-sections view (to prevent
mwc-tab-bar
from being loaded and available for custom cards to use) or refreshing the page after using the add card dialog.What I expected to happen:
mwc-tab-bar
to render like it does on traditional views.What happened instead:
mwc-tab-bar
doesn't seem to load in the new sections view. Custom cards that reference it end up not loading anything.Minimal steps to reproduce:
Sections (experimental)
.mwc-tab-bar
element in use at the top of the add card dialog.Custom: Layout Card
. Note how the layout/cards tab bar is visible.mwc-tab-bar
, it does not render in the layout card editor.Error messages from the browser console:
NA
Other notes:
I ran into this issue with the config UI of one of my custom cards as well. I ended up switching to
paper-tabs
as those should always be present in Home Assistant views due to their use as the view buttons and the config/visibility/layout selector.By putting an X in the boxes ([X]) below, I indicate that I: