Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0a53156
feat(tabs, tab-nav, tab-title, tab): add component tokens
aPreciado88 Mar 8, 2025
d09a315
feat(tabs, tab-nav, tab-title, tab): update token description
aPreciado88 Mar 8, 2025
b39dd95
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 10, 2025
c679ee7
feat(tabs, tab-nav, tab-title, tab): update e2e tests
aPreciado88 Mar 10, 2025
ee8435c
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 12, 2025
de0df4e
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 13, 2025
3147a82
feat(tabs, tab-nav, tab-title, tab): add xbutton ref to fix failing e…
aPreciado88 Mar 13, 2025
1f144bf
feat(tabs, tab-nav, tab-title, tab): update css token names
aPreciado88 Mar 14, 2025
3a68636
feat(tabs, tab-nav, tab-title, tab): update failing e2e tests
aPreciado88 Mar 14, 2025
d953d7d
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 14, 2025
b886841
feat(tabs, tab-nav, tab-title, tab): update skipped e2e tests
aPreciado88 Mar 14, 2025
784a54b
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 18, 2025
33d38e0
feat(tabs, tab-nav, tab-title, tab): rename internal css token
aPreciado88 Mar 19, 2025
367b34e
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 19, 2025
0368049
feat(tabs, tab-nav, tab-title, tab): remove unused tab-nav resources …
aPreciado88 Mar 19, 2025
65fdd4c
feat(tabs, tab-nav, tab-title, tab): rename and add css tokens
aPreciado88 Mar 21, 2025
e77a44c
feat(tabs, tab-nav, tab-title, tab): update css token description
aPreciado88 Mar 21, 2025
dbc8ee6
refactor(tabs): use tag selector (#11778)
anveshmekala Mar 21, 2025
79fad63
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 21, 2025
3ca8f54
feat(tabs, tab-nav, tab-title, tab): update css tokens descriptions
aPreciado88 Mar 21, 2025
5e64c7c
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 21, 2025
2829e61
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 24, 2025
0436cb6
feat(tabs, tab-nav, tab-title, tab): update css tokens descriptions
aPreciado88 Mar 24, 2025
a242dd9
feat(tabs, tab-nav, tab-title, tab): update css tokens descriptions
aPreciado88 Mar 25, 2025
0315370
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 25, 2025
2dea22b
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 25, 2025
80806f8
feat(tabs, tab-nav, tab-title, tab): use class selectors in themed e2…
aPreciado88 Mar 25, 2025
619aa51
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 25, 2025
25c184e
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 27, 2025
b39069d
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 28, 2025
6fdb2d9
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Mar 31, 2025
193e694
feat(tabs, tab-nav, tab-title, tab): remove tab bottom border when se…
aPreciado88 Apr 2, 2025
2f591e6
feat(tabs, tab-nav, tab-title, tab): fix dev merge conflicts
aPreciado88 Apr 2, 2025
c8d5277
feat(tabs, tab-nav, tab-title, tab): fix failing e2e test
aPreciado88 Apr 2, 2025
6d01816
feat(tabs, tab-nav, tab-title, tab): update tab border styles
aPreciado88 Apr 2, 2025
13cfb73
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 2, 2025
6cceed6
feat(tabs, tab-nav, tab-title, tab): remove inactive tab tokens
aPreciado88 Apr 4, 2025
444892a
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 4, 2025
bf756ab
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 7, 2025
a45e1e1
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 8, 2025
1891798
feat(tabs, tab-nav, tab-title, tab): update e2e tests
aPreciado88 Apr 8, 2025
dd555ea
feat(tabs, tab-nav, tab-title, tab): update css variable names
aPreciado88 Apr 8, 2025
7423434
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 8, 2025
5e88694
feat(tabs, tab-nav, tab-title, tab): rename tab-nav root element clas…
aPreciado88 Apr 8, 2025
795998c
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 8, 2025
319597c
feat(tabs, tab-nav, tab-title, tab): restore inline-editable componen…
aPreciado88 Apr 9, 2025
edc4c82
Merge branch 'dev' of github.com:Esri/calcite-design-system into aPre…
aPreciado88 Apr 9, 2025
91b3dda
feat(tabs, tab-nav, tab-title, tab): update failing e2e test
aPreciado88 Apr 9, 2025
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
71 changes: 37 additions & 34 deletions packages/calcite-components/src/assets/styles/includes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,50 +106,53 @@
}
}

@mixin x-button() {
:host([scale="s"]) {
.x-button {
inline-size: theme("spacing.4");
block-size: theme("spacing.4");
}
}

:host([scale="m"]) {
.x-button {
inline-size: theme("spacing.6");
block-size: theme("spacing.6");
}
}

:host([scale="l"]) {
.x-button {
inline-size: theme("spacing.8");
block-size: theme("spacing.8");
}
}

@mixin x-button(
$size: "var(--calcite-internal-close-size, 1.5rem)",
$padding: "0",
$color: "var(--calcite-close-icon-color, var(--calcite-color-text-1))",
$background-color: "var(--calcite-close-background-color, var(--calcite-color-transparent))",
$background-color-hover: "var(--calcite-close-background-color-hover, var(--calcite-color-transparent-hover))",
$background-color-press: "var(--calcite-close-background-color-press, var(--calcite-color-transparent-press))"
) {
.x-button {
@apply appearance-none bg-transparent border-2 content-center cursor-pointer flex focus-base items-center justify-center m-0 self-center text-color-3 transition-default;

border-radius: 50%;
border-color: transparent;
background-color: var(--calcite-color-foreground-2);
@apply transition-default;
border-style: none;
cursor: pointer;
outline-color: transparent;
align-items: center;
margin: 0;
background-color: #{$background-color};
-webkit-appearance: none;
display: flex;
align-content: center;
justify-content: center;
color: #{$color};
block-size: #{$size};
inline-size: #{$size};
min-block-size: #{$size};
min-inline-size: #{$size};
padding: #{$padding};

&:active,
&:hover {
@apply text-color-1;
background-color: var(--calcite-color-foreground-3);
&:hover,
&:focus {
background-color: #{$background-color-hover};
}
&:focus {
@apply focus-inset;
}

&:active {
@apply border-solid;
border-color: theme("borderColor.color-brand");
background-color: #{$background-color-press};
}

& calcite-icon {
calcite-icon {
color: inherit;
}
}

.x-button--round {
border-radius: 9999px;
}
}

@mixin close-button(
Expand Down
25 changes: 11 additions & 14 deletions packages/calcite-components/src/components/button/button.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,14 +509,11 @@ describe("calcite-button", () => {
Layers
</calcite-button>
`;
let page;
let buttonEl;
let buttonHoverStyle;

it("should have defined CSS custom properties", async () => {
page = await newE2EPage({ html: buttonSnippet });
const page = await newE2EPage({ html: buttonSnippet });
const buttonStyles = await page.evaluate(() => {
buttonEl = document.querySelector("calcite-button");
const buttonEl = document.querySelector("calcite-button");
buttonEl.style.setProperty("--calcite-color-transparent-hover", "rgba(34, 23, 200, 0.4)");
buttonEl.style.setProperty("--calcite-color-transparent-press", "rgba(1, 20, 44, 0.1");
return {
Expand All @@ -530,31 +527,31 @@ describe("calcite-button", () => {

describe("when mode attribute is not provided", () => {
it("should render button pseudo classes with default values tied to light mode", async () => {
page = await newE2EPage({ html: buttonSnippet });
buttonEl = await page.find("calcite-button >>> button");
const page = await newE2EPage({ html: buttonSnippet });
const buttonEl = await page.find("calcite-button >>> button");
await buttonEl.hover();
await page.waitForChanges();
buttonHoverStyle = await buttonEl.getComputedStyle();
const buttonHoverStyle = await buttonEl.getComputedStyle();
expect(buttonHoverStyle.getPropertyValue("background-color")).toEqual("rgba(0, 0, 0, 0.04)");
});
});

describe("when mode attribute is dark", () => {
it("should render button pseudo classes with value tied to dark mode", async () => {
page = await newE2EPage({
const page = await newE2EPage({
html: `<div class="calcite-mode-dark">${buttonSnippet}</div>`,
});
buttonEl = await page.find("calcite-button >>> button");
const buttonEl = await page.find("calcite-button >>> button");
await buttonEl.hover();
await page.waitForChanges();
buttonHoverStyle = await buttonEl.getComputedStyle();
const buttonHoverStyle = await buttonEl.getComputedStyle();
expect(buttonHoverStyle.getPropertyValue("background-color")).toEqual("rgba(255, 255, 255, 0.04)");
});
});

it("should allow the CSS custom property to be overridden", async () => {
const overrideStyle = "rgba(255, 255, 0, 0.9)";
page = await newE2EPage({
const page = await newE2EPage({
html: `
<style>
:root {
Expand All @@ -563,10 +560,10 @@ describe("calcite-button", () => {
</style>
<div>${buttonSnippet}</div>`,
});
buttonEl = await page.find("calcite-button >>> button");
const buttonEl = await page.find("calcite-button >>> button");
await buttonEl.hover();
await page.waitForChanges();
buttonHoverStyle = await buttonEl.getComputedStyle();
const buttonHoverStyle = await buttonEl.getComputedStyle();
expect(buttonHoverStyle.getPropertyValue("background-color")).toEqual(overrideStyle);
});
});
Expand Down
Loading
Loading