Skip to content

Commit 6ec69a0

Browse files
authored
fix: Button group too condensed when using djangocms-admin-style (#303)
1 parent 662b357 commit 6ec69a0

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

djangocms_frontend/static/djangocms_frontend/css/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

djangocms_frontend/static/djangocms_frontend/css/button_group.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

private/sass/components/_button-group.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
}
4747
}
4848

49+
form .form-row>div:not([class])>.flex-container>label+div.frontend-button-group {
50+
// djangocms-adim-style hack with high specificity
51+
max-width: unset;
52+
width: unset;
53+
}
54+
55+
4956
.frontend-button-group-context-size,
5057
.frontend-button-group-context-colors {
5158
> div {

private/sass/components/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$color-primary: var(--primary);
2-
$color-secondary: var(--dca-action-bg, var(--header-bg));
2+
$color-secondary: var(--dca-action-bg, var(--dca-primary, var(--header-bg)));
33
$color-gray: var(--dca-gray, var(--breadcrumbs-fg, #999));
44
$dark-fg: var(--dca-dark-fg, #333);
55

0 commit comments

Comments
 (0)