Skip to content

Commit c8f5e39

Browse files
Waiting for new tokens
1 parent b28e5ae commit c8f5e39

File tree

3 files changed

+9
-64
lines changed

3 files changed

+9
-64
lines changed

.github/workflows/node-sass.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

scss/_variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ $form-check-input-focus-border: $ouds-checkbox-color-content-focus !de
10761076
// OUDS mod: no `$form-check-input-focus-box-shadow`
10771077

10781078
// OUDS mod
1079-
$ouds-checkbox-calc-multiplicator: 1 !default; // Here to handle 1px border using svg
1079+
$ouds-checkbox-calc-multiplicator: 2 !default; // Here to handle 1px border using svg
10801080
$ouds-checkbox-calc-viewbox: calc(strip-units($form-check-input-width) * $ouds-checkbox-calc-multiplicator) !default; // stylelint-disable-line function-disallowed-list
10811081
$ouds-checkbox-calc-icon-width: calc(strip-units($ouds-checkbox-size-indicator-inner-icon) * $ouds-checkbox-calc-multiplicator) !default; // stylelint-disable-line function-disallowed-list
10821082
$ouds-checkbox-calc-icon-placement: calc((strip-units($form-check-input-width) - strip-units($ouds-checkbox-size-indicator-inner-icon)) * $ouds-checkbox-calc-multiplicator / 2) !default; // stylelint-disable-line function-disallowed-list
@@ -1113,6 +1113,7 @@ $ouds-checkbox-unselected-icon: url("data:image/svg+xml,<svg xmlns='http://www.w
11131113
$ouds-checkbox-unselected-hover-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 #{$ouds-checkbox-calc-viewbox} #{$ouds-checkbox-calc-viewbox}'><rect x='#{calc($ouds-checkbox-calc-border-width-unselected-hover / 2)}' y='#{calc($ouds-checkbox-calc-border-width-unselected-hover / 2)}' width='#{$ouds-checkbox-calc-width-unselected-hover}' height='#{$ouds-checkbox-calc-width-unselected-hover}' rx='#{$ouds-checkbox-calc-border-radius}' ry='#{$ouds-checkbox-calc-border-radius}' fill='#{if($form-check-input-bg == 0, none, #000)}' stroke='#{if($form-check-input-focus-border == 0, none, #000)}' stroke-width='#{$ouds-checkbox-calc-border-width-unselected-hover}'/></svg>") !default;
11141114
$ouds-checkbox-selected-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 #{$ouds-checkbox-calc-viewbox} #{$ouds-checkbox-calc-viewbox}'><rect x='#{calc($ouds-checkbox-calc-border-width-selected / 2)}' y='#{calc($ouds-checkbox-calc-border-width-selected / 2)}' width='#{$ouds-checkbox-calc-width-selected}' height='#{$ouds-checkbox-calc-width-selected}' rx='#{$ouds-checkbox-calc-border-radius}' ry='#{$ouds-checkbox-calc-border-radius}' fill='#{if($form-check-input-checked-bg-color == 0, none, #000)}' stroke='#{if($form-check-input-checked-border-color == 0, none, #000)}' stroke-width='#{$ouds-checkbox-calc-border-width-selected}'/>#{$form-check-input-checked-bg-image}</svg>") !default;
11151115
$ouds-checkbox-indeterminate-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 #{$ouds-checkbox-calc-viewbox} #{$ouds-checkbox-calc-viewbox}'><rect x='#{calc($ouds-checkbox-calc-border-width-indeterminate / 2)}' y='#{calc($ouds-checkbox-calc-border-width-indeterminate / 2)}' width='#{$ouds-checkbox-calc-width-indeterminate}' height='#{$ouds-checkbox-calc-width-indeterminate}' rx='#{$ouds-checkbox-calc-border-radius}' ry='#{$ouds-checkbox-calc-border-radius}' fill='#{if($form-check-input-indeterminate-bg-color == 0, none, #000)}' stroke='#{if($form-check-input-indeterminate-border-color == 0, none, #000)}' stroke-width='#{$ouds-checkbox-calc-border-width-indeterminate}'/>#{$form-check-input-indeterminate-bg-image}</svg>") !default;
1116+
@debug $ouds-checkbox-unselected-icon;
11161117
// scss-docs-end ouds-composite-checks
11171118

11181119
// OUDS mod: Star rating

site/content/docs/0.2/forms/checks-radios.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ aliases:
1010
toc: true
1111
---
1212

13+
<!-- TODO: Remove this part before merging -->
14+
1315
{{< example >}}
14-
<input class="form-check-input" type="checkbox" value="">
16+
<input class="form-check-input" type="checkbox" value="" id="checkDefault-2">
17+
<label for="checkDefault-2">Not empty</label>
1518
<div class="form-check">
16-
<input class="form-check-input" type="checkbox" value="">
19+
<input class="form-check-input" type="checkbox" value="" id="checkDefault-1">
20+
<label for="checkDefault-1">Not empty</label>
1721
</div>
1822
<div class="form-check">
1923
<input class="form-check-input" type="checkbox" value="" id="checkDefault0">
20-
<label class="form-check-label" for="checkDefault0"></label>
24+
<label class="form-check-label" for="checkDefault0">Not empty</label>
2125
</div>
2226
<div class="form-check">
2327
<input class="form-check-input" type="checkbox" value="" id="checkDefault1">
@@ -221,11 +225,3 @@ They are commonly used to build custom component, and shouldn't be used alone. Y
221225
<input class="form-check-input" type="checkbox" id="checkboxNoLabel" value="" aria-label="...">
222226
</div>
223227
{{< /example >}}
224-
225-
## CSS
226-
227-
### Sass variables
228-
229-
Variables for checks:
230-
231-
{{< scss-docs name="form-check-variables" file="scss/_variables.scss" >}}

0 commit comments

Comments
 (0)