Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions packages/calcite-components/src/components/fab/fab.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { newE2EPage } from "@arcgis/lumina-compiler/puppeteerTesting";
import { describe, expect, it } from "vitest";
import { accessible, defaults, disabled, hidden, renders, themed } from "../../tests/commonTests";
import { accessible, defaults, disabled, hidden, renders } from "../../tests/commonTests";
import { findAll } from "../../tests/utils";
import { html } from "../../../support/formatting";
import { CSS } from "./resources";

describe("calcite-fab", () => {
Expand Down Expand Up @@ -149,17 +148,4 @@ describe("calcite-fab", () => {
});
});
});

describe("theme", () => {
describe("default", () => {
themed(html`<calcite-fab></calcite-fab>`, {
"--calcite-fab-background-color": {
targetProp: "--calcite-fab-background-color",
},
"--calcite-fab-shadow": {
targetProp: "--calcite-fab-shadow",
},
});
});
});
});
17 changes: 2 additions & 15 deletions packages/calcite-components/src/components/fab/fab.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
/**
* CSS Custom Properties
*
* These properties can be overridden using the component's tag as selector.
*
* @prop --calcite-fab-background-color: Specifies the component's background color.
* @prop --calcite-fab-shadow: Specifies the component's shadow.
*/

:host {
@apply flex;

background-color: var(--calcite-fab-background-color, transparent);
@apply flex bg-transparent;
}

@include disabled();

calcite-button {
--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
box-shadow: var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));

@apply shadow-2;
&:hover {
@apply shadow-2-lg;
}
Expand Down
5 changes: 0 additions & 5 deletions packages/calcite-components/src/custom-theme.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { chips, chipTokens } from "./custom-theme/chips";
import { comboboxItem, comboboxItemTokens, selectedComboboxItem } from "./custom-theme/combobox-item";
import { datePicker, datePickerRange, datePickerTokens } from "./custom-theme/date-picker";
import { dropdown, DropdownGroupTokens, DropdownItemTokens, DropdownTokens } from "./custom-theme/dropdown";
import { fab, fabTokens } from "./custom-theme/fab";
import { flow, flowTokens } from "./custom-theme/flow";
import { graph, graphTokens } from "./custom-theme/graph";
import { handle, handleTokens } from "./custom-theme/handle";
Expand Down Expand Up @@ -166,9 +165,6 @@ const kitchenSink = (args: Record<string, string>, useTestValues = false) =>
<div class="demo-column">${datePicker}</div>
<div class="demo-column">${datePickerRange}</div>
</div>
<div class="demo-row">
<div class="demo-column">${fab}</div>
</div>
</div>`;

const componentTokens = {
Expand All @@ -194,7 +190,6 @@ const componentTokens = {
...DropdownTokens,
...DropdownItemTokens,
...DropdownGroupTokens,
...fabTokens,
...flowTokens,
...handleTokens,
...inlineEditableTokens,
Expand Down
8 changes: 0 additions & 8 deletions packages/calcite-components/src/custom-theme/fab.ts

This file was deleted.