Skip to content

Commit

Permalink
move button style overridables to ha-icon-button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Nov 8, 2023
1 parent 15f9458 commit bed0e4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions dist/android-tv-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/classes/remote-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ export class RemoteButton extends BaseRemoteElement {
return [
super.styles as CSSResult,
css`
:host {
--size: 48px;
--mdc-icon-button-size: var(--size);
}
ha-icon-button,
ha-icon,
svg {
Expand All @@ -103,14 +99,17 @@ export class RemoteButton extends BaseRemoteElement {
}
ha-icon-button {
cursor: pointer;
--mdc-icon-size: 100%;
position: relative;
display: inline-flex;
flex-direction: column;
align-content: center;
justify-content: center;
text-align: center;
align-items: center;
--size: 48px;
--mdc-icon-button-size: var(--size);
--mdc-icon-size: 100%;
}
`,
];
Expand Down

0 comments on commit bed0e4b

Please sign in to comment.