Skip to content

Commit

Permalink
chore(button): clear up linter warnings
Browse files Browse the repository at this point in the history
Fixes warnings and errors from stylelint and eslint.
  • Loading branch information
jawinn committed Apr 30, 2024
1 parent c830cc9 commit b81a129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/button/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ governing permissions and limitations under the License.
--spectrum-button-intended-icon-size: var(--spectrum-workflow-icon-size-100);

--mod-progress-circle-position: absolute;
/* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties */
/* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- height and width are set by implementations */
--spectrum-downstate-perspective: max(var(--spectrum-downstate-height), var(--spectrum-downstate-width) * var(--spectrum-component-size-width-ratio-down));

&.spectrum-Button--iconOnly {
Expand Down Expand Up @@ -358,7 +358,7 @@ governing permissions and limitations under the License.
margin-inline-start: var(--mod-button-margin-left);

.spectrum-Icon {
/* stylelint-disable-next-line custom-property-pattern -- Any block-size difference between the intended workflow icon size and actual icon used.
/* Any block-size difference between the intended workflow icon size and actual icon used.
Helps support any existing use of smaller UI icons instead of intended Workflow icons. */
--spectrum-button-icon-size-difference: max(0px,
var(--spectrum-button-intended-icon-size) -
Expand Down
1 change: 1 addition & 0 deletions components/button/stories/button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { withDownStateDimensionCapture } from "@spectrum-css/preview/decorators"

import { html } from "lit";
import { styleMap } from "lit/directives/style-map.js";
import { when } from "lit/directives/when.js";

import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js";
import { Template as Typography } from "@spectrum-css/typography/stories/template.js";
Expand Down

0 comments on commit b81a129

Please sign in to comment.