Skip to content

Commit

Permalink
No material web internals
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Oct 14, 2023
1 parent 08d8b43 commit 0e34d45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
9 changes: 3 additions & 6 deletions src/components/ha-outlined-button.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { css } from "lit";
import { customElement } from "lit/decorators";
import { OutlinedButton } from "@material/web/button/internal/outlined-button";
import { styles as outlinedStyles } from "@material/web/button/internal/outlined-styles.css";
import { styles as sharedStyles } from "@material/web/button/internal/shared-styles.css";
import { MdOutlinedButton } from "@material/web/button/outlined-button";

@customElement("ha-outlined-button")
export class HaOutlinedButton extends OutlinedButton {
export class HaOutlinedButton extends MdOutlinedButton {
static override styles = [
sharedStyles,
outlinedStyles,
...MdOutlinedButton.styles,
css`
:host {
--ha-icon-display: block;
Expand Down
16 changes: 3 additions & 13 deletions src/components/ha-outlined-icon-button.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import { css } from "lit";
import { customElement } from "lit/decorators";
import { IconButton } from "@material/web/iconbutton/internal/icon-button";
import { styles as outlinedStyles } from "@material/web/iconbutton/internal/outlined-styles.css";
import { styles as sharedStyles } from "@material/web/iconbutton/internal/shared-styles.css";
import { MdOutlinedIconButton } from "@material/web/iconbutton/outlined-icon-button";

@customElement("ha-outlined-icon-button")
export class HaOutlinedIconButton extends IconButton {
protected override getRenderClasses() {
return {
...super.getRenderClasses(),
outlined: true,
};
}

export class HaOutlinedIconButton extends MdOutlinedIconButton {
static override styles = [
sharedStyles,
outlinedStyles,
...MdOutlinedIconButton.styles,
css`
:host {
--ha-icon-display: block;
Expand Down

0 comments on commit 0e34d45

Please sign in to comment.