From 6cbd252f3a7f51575db4b8b3d2c1a4e2e363cb51 Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Mon, 12 Feb 2024 11:13:25 -0800 Subject: [PATCH] perf(fixed): remove fixed support --- demo/api.md | 1 - src/componentBase.js | 6 +----- src/style-fixed.scss | 3 --- src/style-unformatted-fixed.scss | 3 --- 4 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 src/style-fixed.scss delete mode 100644 src/style-unformatted-fixed.scss diff --git a/demo/api.md b/demo/api.md index fa2a896..317d30f 100644 --- a/demo/api.md +++ b/demo/api.md @@ -7,7 +7,6 @@ | Attribute | Type | Description | |-----------|-----------|--------------------------------------------------| -| [fixed](#fixed) | `Boolean` | Uses fixed pixel values for element shape | | [md](#md) | `Boolean` | Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile. | | [onDark](#onDark) | `Boolean` | Sets close icon to white for dark backgrounds | | [sm](#sm) | `Boolean` | Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile. | diff --git a/src/componentBase.js b/src/componentBase.js index c6bb870..b156ae9 100644 --- a/src/componentBase.js +++ b/src/componentBase.js @@ -9,9 +9,7 @@ import { LitElement, html } from "lit"; import { classMap } from 'lit/directives/class-map.js'; import styleCss from "./style-css.js"; -import styleCssFixed from './style-fixed-css.js'; import styleUnformattedCss from './style-unformatted-css.js'; -import styleUnformattedCssFixed from './style-unformatted-fixed-css.js'; import closeIcon from '@alaskaairux/icons/dist/icons/interface/x-lg.mjs'; /* eslint-disable one-var, prefer-destructuring */ @@ -213,9 +211,7 @@ export default class ComponentBase extends LitElement { static get styles() { return [ styleCss, - styleCssFixed, - styleUnformattedCss, - styleUnformattedCssFixed + styleUnformattedCss ]; } diff --git a/src/style-fixed.scss b/src/style-fixed.scss deleted file mode 100644 index 3bbcfba..0000000 --- a/src/style-fixed.scss +++ /dev/null @@ -1,3 +0,0 @@ -:host([fixed]) { - @import './style.scss'; -} diff --git a/src/style-unformatted-fixed.scss b/src/style-unformatted-fixed.scss deleted file mode 100644 index 70d450f..0000000 --- a/src/style-unformatted-fixed.scss +++ /dev/null @@ -1,3 +0,0 @@ -:host([fixed]) { - @import './style-unformatted.scss'; -}