Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2d14fc0
refactor(custom select): enabling `hidden` attribute
mfranzke Sep 25, 2025
13ec604
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Sep 26, 2025
a122c1b
refactor: formatting
mfranzke Sep 26, 2025
3bb2166
refactor: extracted display CSS property setting in a mixin
mfranzke Sep 26, 2025
eddaedb
refactor: replaced further CSS display property
mfranzke Sep 26, 2025
13d6ec3
refactor: replaced further CSS display property
mfranzke Sep 26, 2025
82adde4
refactor: replaced further CSS display properties
mfranzke Sep 26, 2025
60d84fe
refactor: replaced further CSS display properties
mfranzke Sep 26, 2025
5bdede7
refactor: replaced further CSS display properties
mfranzke Sep 26, 2025
6b879d7
refactor: replaced further CSS display properties
mfranzke Sep 26, 2025
61e91ae
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Sep 26, 2025
2eb64f4
refactor: further adapted CSS display declarations
mfranzke Sep 26, 2025
c229858
refactor: order
mfranzke Sep 26, 2025
6a403ad
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Sep 29, 2025
90c6739
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Sep 30, 2025
bc973f8
refactor: only having one mixin file within the repo
mfranzke Oct 2, 2025
f9ed5bf
refactor: consolidating the @use definitions
mfranzke Oct 2, 2025
27bd818
refactor: corrected those path
mfranzke Oct 2, 2025
f3ee59f
refactor: corrected the reference
mfranzke Oct 2, 2025
bdd6dae
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Oct 2, 2025
148ba24
auto update snapshots (#5119)
github-actions[bot] Oct 2, 2025
be3fa8f
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Oct 2, 2025
2b9730e
auto update snapshots (#5120)
github-actions[bot] Oct 2, 2025
f95a359
Merge branch 'main' into refactor-custom-select-enabling-hidden-attri…
mfranzke Oct 2, 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@

background-color: colors.$db-adaptive-bg-basic-level-1-default;
list-style: none;
display: flex;

@include helpers.display(flex);

justify-content: space-between;
padding: variables.$db-spacing-fixed-md;
gap: variables.$db-spacing-fixed-md;
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/brand/brand.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@use "@db-ux/core-foundations/build/styles/variables";
@use "@db-ux/core-foundations/build/styles/colors";
@use "@db-ux/core-foundations/build/styles/fonts";
@use "@db-ux/core-foundations/build/styles/helpers/display";

.db-brand {
@extend %db-overwrite-font-size-md;
@include display.display(flex);

display: flex;
gap: variables.$db-spacing-fixed-sm;
align-items: center;
font-weight: 700;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

@extend %default-card;
@include component.get-data-spacing;
@include helpers.display(flex);

display: flex;
flex-direction: column;
background-color: var(--db-card-background-color-default);

Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
}

input {
display: flex;
@include helpers.display(flex);

border-radius: variables.$db-border-radius-2xs;
align-items: center;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
@include helpers.divider("top", "after");

@include screen-sizes.screen("sm") {
display: none;
@include helpers.display(none);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
.db-custom-select-form-field {
&:is(summary) {
list-style: none;
display: flex;

@include helpers.display(flex);

align-items: center;
justify-content: space-between;
gap: variables.$db-spacing-fixed-sm;
Expand All @@ -17,7 +19,8 @@
}

> div {
display: flex;
@include helpers.display(flex);

gap: variables.$db-spacing-fixed-sm;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ db-custom-select-list-item:not(:last-of-type) {
}

.db-custom-select-list-item {
display: flex;
@include helpers.display(flex);

block-size: 100%;
position: relative;
padding: variables.$db-spacing-fixed-sm;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use "@db-ux/core-foundations/build/styles/variables";
@use "../../styles/internal/form-components";
@use "@db-ux/core-foundations/build/styles/helpers/display";

.db-custom-select-list {
all: unset;
Expand All @@ -26,7 +27,9 @@

> ul {
all: unset;
display: flex;

@include display.display(flex);

flex-direction: column;

&:has(span) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

&:has(summary span) {
[id$="-placeholder"] {
display: none;
@include helpers.display(none);
}
}

Expand Down
9 changes: 4 additions & 5 deletions packages/components/src/components/drawer/drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ $spacings: (
.db-drawer-container {
@extend %direction-right;
@extend %spacing-drawer;
@include helpers.display(flex);

display: flex;
flex-direction: column;
background-color: colors.$db-adaptive-bg-basic-level-1-default;
block-size: 100%;
Expand Down Expand Up @@ -179,8 +179,7 @@ $spacings: (
}

.db-drawer-header {
display: none;

@include helpers.display(none);
@include helpers.divider("bottom");

.db-drawer-header-text {
Expand All @@ -199,7 +198,7 @@ $spacings: (

&:has(.button-close-drawer),
&:has(:not(.db-drawer-header-text:empty)) {
display: flex;
@include helpers.display(flex);
}
}
}
Expand All @@ -213,7 +212,7 @@ $spacings: (
background-color: transparent;

&[open] {
display: flex;
@include helpers.display(flex);
}

&:not([data-direction]),
Expand Down
45 changes: 27 additions & 18 deletions packages/components/src/components/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

.db-header {
background-color: colors.$db-adaptive-bg-basic-level-1-default;
display: flex;

@include helpers.display(flex);

flex-direction: column;
position: relative;
min-block-size: component.$min-mobile-header-height;
Expand All @@ -34,7 +36,7 @@
}

.db-link {
display: inline-block;
@include helpers.display(inline-block);
}

&[data-on-forcing-mobile="true"] {
Expand All @@ -59,7 +61,7 @@
.db-header-meta-navigation:empty
):has(.db-header-secondary-action:empty) {
.db-header-burger-menu-container {
display: none;
@include helpers.display(none);
}
}

Expand All @@ -73,7 +75,8 @@
}

.db-header-navigation-bar {
display: flex;
@include helpers.display(flex);

position: relative;
padding: variables.$db-spacing-fixed-xs variables.$db-spacing-fixed-md;
inline-size: 100%;
Expand All @@ -86,8 +89,8 @@

.db-header-meta-navigation {
@extend %db-density-functional;
@include helpers.display(flex);

display: flex;
flex-direction: column;
gap: variables.$db-spacing-fixed-sm;
justify-content: flex-end;
Expand All @@ -107,17 +110,18 @@
}

&:empty {
display: none;
@include helpers.display(none);
}
}

&:empty {
display: none;
@include helpers.display(none);
}
}

.db-header-navigation-container {
display: inherit;
@include helpers.display(inherit);

flex: 1 1 auto;
inline-size: 100%;
align-items: center;
Expand All @@ -139,12 +143,12 @@
}

.db-header-brand-container:not(:has(> :nth-child(1))) {
display: none;
@include helpers.display(none);
}

.db-header-action-container:has(> .db-header-secondary-action:empty) {
@include screen-sizes.screen("md") {
display: none;
@include helpers.display(none);
}
}

Expand Down Expand Up @@ -172,7 +176,9 @@
.db-header-action-container {
align-items: center;
block-size: 100%;
display: inherit;

@include helpers.display(inherit);

gap: inherit;
flex: 0 1 auto;
flex-grow: 0;
Expand All @@ -195,7 +201,8 @@
}

.db-header-drawer-navigation {
display: flex;
@include helpers.display(flex);

flex-direction: column;
flex: 1 1 auto;
block-size: 100%;
Expand All @@ -213,7 +220,8 @@

.db-header-navigation,
.db-header-secondary-action {
display: flex;
@include helpers.display(flex);

gap: variables.$db-spacing-fixed-sm;
padding-inline: variables.$db-spacing-fixed-md;

Expand All @@ -234,7 +242,8 @@
padding-block-end: 0;

.db-drawer-content {
display: flex;
@include helpers.display(flex);

flex-direction: column;
block-size: 100%;
overflow: hidden;
Expand All @@ -245,21 +254,21 @@
.db-header-meta-navigation,
.db-header-navigation-container > .db-header-navigation,
.db-header-action-container > .db-header-secondary-action {
display: none;
@include helpers.display(none);

@include screen-sizes.screen("md") {
display: inherit;
@include helpers.display(inherit);
}
}

/* Only for Mobile */
.db-header-drawer-navigation > .db-header-meta-navigation:not(:empty) {
display: inherit;
@include helpers.display(inherit);
}

.db-header-drawer,
.db-header-burger-menu-container {
@include screen-sizes.screen("md") {
display: none;
@include helpers.display(none);
}
}
3 changes: 2 additions & 1 deletion packages/components/src/components/icon/icon.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@use "@db-ux/core-foundations/build/styles/icons";
@use "@db-ux/core-foundations/build/styles/helpers/display";

.db-icon {
@include icons.is-icon-text-replace;

/* Safari hack */
@supports (-webkit-hyphens: none) {
display: inline-block;
@include display.display(inline-block);

&::before {
block-size: auto;
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/components/infotext/infotext.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@use "sass:map";
@use "@db-ux/core-foundations/build/styles/fonts";
@use "@db-ux/core-foundations/build/styles/variables";
@use "@db-ux/core-foundations/build/styles/helpers/display";
@use "@db-ux/core-foundations/build/styles/colors";
@use "@db-ux/core-foundations/build/styles/icons";

.db-infotext {
--db-icon-margin-end: #{variables.$db-spacing-fixed-2xs};

@extend %db-overwrite-font-size-sm;

display: flex;
@include display.display(flex);

@include icons.has-no-icon {
@include icons.to-filled-icon;
Expand Down
Loading