Skip to content

Commit

Permalink
chore(merge main): patched Boosted commit → fdbb7d3 (#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored Jul 17, 2024
1 parent 3696c26 commit 9b11cce
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .bundlewatch.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"path": "./dist/css/ouds-web-utilities.css",
"maxSize": "12.75 kB"
"maxSize": "13.0 kB"
},
{
"path": "./dist/css/ouds-web-utilities.min.css",
Expand Down
2 changes: 2 additions & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
--#{$prefix}form-select-indicator: #{$form-select-indicator}; // OUDS mod
--#{$prefix}form-select-disabled-indicator: #{$form-select-disabled-indicator}; // OUDS mod
--#{$prefix}form-switch-square-bg: #{$form-switch-square-bg}; // OUDS mod
--#{$prefix}form-switch-unchecked-invalid-border-color: #{$form-switch-unchecked-invalid-border-color}; // OUDS mod

// OUDS mod
// Table-specific styles
Expand Down Expand Up @@ -253,6 +254,7 @@
--#{$prefix}form-select-disabled-indicator: #{$form-select-disabled-indicator-dark}; // OUDS mod
--#{$prefix}form-color-disabled-filter: #{$form-color-disabled-filter-dark};
--#{$prefix}form-switch-square-bg: #{$form-switch-square-bg-dark}; // OUDS mod
--#{$prefix}form-switch-unchecked-invalid-border-color: #{$form-switch-unchecked-invalid-border-color-dark}; // OUDS mod

// OUDS mod
// Table-specific styles
Expand Down
9 changes: 5 additions & 4 deletions scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ $form-select-disabled-indicator-dark: escape-svg(url("data:image/svg+xml,<svg
// OUDS mod: no $form-switch-bg-image-dark

// scss-docs-start form-validation-colors-dark
$form-valid-color-dark: var(--#{$prefix}success-text-emphasis) !default; // OUDS mod: instead of `$green-300`
$form-valid-border-color-dark: var(--#{$prefix}success) !default; // OUDS mod: instead of `$green-300`
$form-invalid-color-dark: var(--#{$prefix}danger-text-emphasis) !default; // OUDS mod: instead of `$red-300`
$form-invalid-border-color-dark: var(--#{$prefix}danger) !default; // OUDS mod: instead of `$red-300`
$form-valid-color-dark: var(--#{$prefix}success-text-emphasis) !default; // OUDS mod: instead of `$green-300`
$form-valid-border-color-dark: var(--#{$prefix}success) !default; // OUDS mod: instead of `$green-300`
$form-invalid-color-dark: var(--#{$prefix}danger-text-emphasis) !default; // OUDS mod: instead of `$red-300`
$form-invalid-border-color-dark: var(--#{$prefix}danger) !default; // OUDS mod: instead of `$red-300`
$form-switch-unchecked-invalid-border-color-dark: $form-invalid-border-color-dark !default; // OUDS mod
// scss-docs-end form-validation-colors-dark

//
Expand Down
13 changes: 7 additions & 6 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1266,12 +1266,13 @@ $form-switch-checked-bg-size: add(map-get($spacers, 2), map-get($spacers, 1)
// stylelint-disable-next-line function-disallowed-list
$form-switch-checked-bg-position: calc(var(--#{$prefix}border-width) * 3) 50% !default; // OUDS mod

$form-switch-checked-square-bg: var(--#{$prefix}body-bg) !default; // OUDS mod
$form-switch-checked-bg: $supporting-orange !default; // OUDS mod
$form-switch-checked-border-color: $supporting-orange !default; // OUDS mod
$form-switch-checked-filter: none !default; // OUDS mod
$form-switch-checked-focus-inner: var(--#{$prefix}focus-visible-inner-color) !default; // OUDS mod
$form-switch-checked-focus-outer: var(--#{$prefix}focus-visible-outer-color) !default; // OUDS mod
$form-switch-checked-square-bg: var(--#{$prefix}body-bg) !default; // OUDS mod
$form-switch-checked-bg: $supporting-orange !default; // OUDS mod
$form-switch-checked-border-color: $supporting-orange !default; // OUDS mod
$form-switch-checked-filter: none !default; // OUDS mod
$form-switch-checked-focus-inner: var(--#{$prefix}focus-visible-inner-color) !default; // OUDS mod
$form-switch-checked-focus-outer: var(--#{$prefix}focus-visible-outer-color) !default; // OUDS mod
$form-switch-unchecked-invalid-border-color: #31c3eb !default; // OUDS mod: will be rendered red when mixed with the filter
// scss-docs-end form-switch-variables

// scss-docs-start input-group-variables
Expand Down
10 changes: 10 additions & 0 deletions scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@
// OUDS mod: label's color doesn't change
}
}

// OUDS mod
.form-switch .form-check-input:not(:checked) {
@include form-validation-state-selector($state) {
filter: $form-switch-filter;
border-color: var(--#{$prefix}form-switch-unchecked-invalid-border-color);
}
}
// End mod

.form-check-inline .form-check-input {
~ .#{$state}-feedback {
margin-left: .5em;
Expand Down

0 comments on commit 9b11cce

Please sign in to comment.