Skip to content

Commit

Permalink
fix(ui5-color-palette): Adapt components with responsive paddings (#4985
Browse files Browse the repository at this point in the history
)

Fixes: #4869
  • Loading branch information
Todor-ads committed Apr 6, 2022
1 parent f5d56e2 commit 9de7198
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/main/src/themes/ColorPalette.css
Expand Up @@ -24,6 +24,7 @@
width: 18.5rem;
max-width: 19.5rem;
max-height: 13rem;
padding: 0.375rem 0.625rem;
}

.ui5-cp-recent-colors-wrapper {
Expand All @@ -43,6 +44,7 @@
flex-flow: wrap;
max-height: var(--_ui5_color-palette-row-height);
overflow: hidden;
padding: var(--_ui5_color-palette-swatch-container-padding);
}

.ui5-cp-separator {
Expand Down
4 changes: 4 additions & 0 deletions packages/main/src/themes/ColorPalettePopover.css
Expand Up @@ -15,3 +15,7 @@
[ui5-responsive-popover]::part(content) {
padding: 0;
}

.ui5-cp-item-container {
padding: 0.3125rem 0.6875rem;
}
2 changes: 2 additions & 0 deletions packages/main/src/themes/base/sizes-parameters.css
Expand Up @@ -23,6 +23,7 @@
--_ui5_color-palette-item-hover-height: 2.375rem;
--_ui5_color-palette-item-margin: calc((var(--_ui5_color-palette-item-hover-height) - var(--_ui5_color-palette-item-height)) / 2);
--_ui5_color-palette-row-width: 12rem;
--_ui5_color-palette-swatch-container-padding: 0.3125rem 0.6875rem;

/* DateTimePicker */
--_ui5_datetime_picker_width: 40.0625rem;
Expand Down Expand Up @@ -166,6 +167,7 @@
--_ui5_color-palette-item-hover-height: 1.625rem;
--_ui5_color-palette-item-margin: calc((var(--_ui5_color-palette-item-hover-height) - var(--_ui5_color-palette-item-height)) / 2);
--_ui5_color-palette-row-width: 8.125rem;
--_ui5_color-palette-swatch-container-padding: 0.1875rem 0.8125rem;
--_ui5_color-palette-item-hover-margin: 0;
--_ui5_color-palette-row-height: 7.5rem;
--_ui5_color-palette-button-height: 2rem;
Expand Down

0 comments on commit 9de7198

Please sign in to comment.