Skip to content

Commit 385d215

Browse files
erbilnasErbil Nas
and
Erbil Nas
authored
fix(checkbox): add relative value for position in checkbox container (#896)
Closes #895 Co-authored-by: Erbil Nas <[email protected]>
1 parent 1fc91d9 commit 385d215

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/components/checkbox-group/checkbox/bl-checkbox.css

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ label {
2424
margin-bottom: var(--bl-size-3xs);
2525
}
2626

27+
.checkbox-container {
28+
position: relative;
29+
}
30+
2731
input[type="checkbox"] {
2832
appearance: none;
2933
outline: none;

src/components/checkbox-group/checkbox/bl-checkbox.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("bl-checkbox", () => {
1414
assert.shadowDom.equal(
1515
el,
1616
`
17-
<div>
17+
<div class="checkbox-container">
1818
<label>
1919
<input type="checkbox"
2020
aria-readonly="false"

src/components/checkbox-group/checkbox/bl-checkbox.ts

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export default class BlCheckbox extends FormControlMixin(LitElement) {
198198
const requiredSuffix = this.required ? html`<span class="required-suffix">*</span>` : "";
199199

200200
const classes = {
201+
"checkbox-container": true,
201202
"dirty": this.dirty,
202203
"invalid": !this.checkValidity(),
203204
};

0 commit comments

Comments
 (0)