Skip to content

Commit 1c92d18

Browse files
authored
[mercury] Remove elevation-1 default border and background (#682)
* `[showcase][general]` Add "content-slot" class/styles for better displaying slotted content * `[showcase][general]` Add "show-boundary" UI helper class * `[showcase][tab]` Apply "show-boundary" class on tab cases * `[mercury][tab]` Update spacing-body and reorder selectors * `[mercury][tab]` Format html on save * `[mercury][tab]` Add mixins for "tab-filled-list" and "tab-outlined" * `[mercury][tab]` Comment out tab-list border (Should only apply for "tab-list-outlined") * `[mercury][showcase][tab]` Add "tab-filled-list" and "tab-outlined" * `[mercury][tab]` Rename "extend" to "variant" * `[mercury][tokens]` Update tab token value * `[mercury][tab]` Comment out "filled-list" and "outlined" cases This cases have not been discused yet. Keeping them commented in case design decides to keep them. * `[showcase][general]` ]Remove border from `.background-color-container` * `[mercury][tab]` Comment out include's for tab variantants These variants are hidden because they have not been discussed yet. * `[showcase][general]` Remove ".show-boundary" class selector This helper border was included to show the component boundary, when it has not a visible border. This feature for the showcase was not approved. * `[mercury][tab]` Fix elevation cases Elevation classes should be applied on the tab itself * `[mercury][tab]` Apply a default surface background on the `tab-list` * `[design-systems]` Update bun.lock * `[showcase]` Update index.html - remove line * `[showcase][tab]` Update tab showcase metadata/cases * `[mercury][tab]` Remove spacing body from host * `[showcase][general]` Make elevation-box padding bigger * `[showcase][common-snippets]` Format on save * [showcase][common-snippets]` Fix typo * `[mercury][tab]` Apply "elevation" or "surface" bg-color to sortable button * `[showcase][tab]` Remove since it is not required with new tab style * `[showcase][copy-code-component]` Format on save * `[showcase]` Recover `blockquote-info` inline-start border color * `[mercury][tab]` Remove "outlnied" and "filled-list" variants - The mentioned variants were not approved. The only tab style is the default, that has no background and no border * `[mercury]` Update bundles tests * Update bun.lock * `[mercury][tab]` Fix tab button "selected" background and border color on drag * `[mercury][tests]` Update bundles tests * `[mercury][tab]` Refactor: Simplify token system and apply DRY principles - Remove 18 --tab-caption tokens - Apply CSS properties directly in mixins - Consolidate duplicate hover/active states - Remove ~41 lines of duplicate code * Update bun.lock * `[showcase][copy-code]` Fix ch-tab-render elevation color * `[mercury][tab][flexible-layout]` Update bundles tests
1 parent a6976e9 commit 1c92d18

File tree

20 files changed

+622
-615
lines changed

20 files changed

+622
-615
lines changed

bun.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"version": "0.1.0",
7373
"dependencies": {
7474
"oxc-resolver": "~11.10.0",
75+
"sass": "~1.86.3",
7576
},
7677
"devDependencies": {
7778
"@eslint/js": "*",

packages/common/src/html.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export const CSS_CLASSES = {
8686
},
8787
TAB: {
8888
TAG: "ch-tab-render",
89-
SELECTOR: "tab"
89+
SELECTOR: "tab",
90+
FILLED_LIST_SELECTOR: "tab-filled-list",
91+
OUTLINED_SELECTOR: "tab-outlined"
9092
},
9193
TOOLTIP: {
9294
TAG: "ch-tooltip",
@@ -134,3 +136,16 @@ export const CUSTOM_CSS_ONLY_FOR_PREVIEW_LAYOUT = `.layout {
134136
font-size: var(--mer-font__size--xs);
135137
justify-content: center;
136138
}`;
139+
140+
export const CONTENT_SLOT = {
141+
/* Diagonal hatch pattern used as a visual placeholder for empty content areas */
142+
SELECTOR: "content-slot",
143+
CSS: `
144+
background-color: transparent;
145+
background-image: var(--content-slot-background-image);
146+
block-size: 200px;
147+
display: grid;
148+
place-content: center;
149+
margin: 0 !important;
150+
`
151+
};

0 commit comments

Comments
 (0)