Skip to content

Commit

Permalink
secondary => primary
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Oct 30, 2024
1 parent 2b44979 commit 3289307
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/panels/developer-tools/ha-panel-developer-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { haStyle } from "../../resources/styles";
import { HomeAssistant, Route } from "../../types";
import "./developer-tools-router";
import "../../components/ha-md-tabs";
import "../../components/ha-md-secondary-tab";
import "../../components/ha-md-primary-tab";

const tabs = [
{ page: "yaml", label: "yaml" },
Expand Down Expand Up @@ -71,11 +71,11 @@ class PanelDeveloperTools extends LitElement {
>
${tabs.map(
(tab) => html`
<ha-md-secondary-tab
<ha-md-primary-tab
>${this.hass.localize(
`ui.panel.developer-tools.tabs.${tab.label}.title`
)}
</ha-md-secondary-tab>
</ha-md-primary-tab>
`
)}
</ha-md-tabs>
Expand Down
6 changes: 3 additions & 3 deletions src/panels/lovelace/hui-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class HUIRoot extends LitElement {
>
${views.map(
(view) => html`
<ha-md-secondary-tab
<ha-md-primary-tab
aria-label=${ifDefined(view.title)}
class=${classMap({
"hide-tab": Boolean(
Expand All @@ -370,7 +370,7 @@ class HUIRoot extends LitElement {
></ha-icon>
`
: view.title || "Unnamed view"}
</ha-md-secondary-tab>
</ha-md-primary-tab>
`
)}
</ha-md-tabs>
Expand Down Expand Up @@ -1085,7 +1085,7 @@ class HUIRoot extends LitElement {
}
ha-md-tabs {
text-transform: uppercase;
--md-secondary-tab-label-text-size: 14px;
--md-primary-tab-label-text-size: 14px;
--md-sys-color-primary: var(--app-header-text-color, white);
--md-sys-color-secondary: var(--app-header-text-color, white);
--md-sys-color-surface: var(--app-header-background-color);
Expand Down

0 comments on commit 3289307

Please sign in to comment.