Skip to content

Commit 6de1638

Browse files
Merge pull request #1092 from IgniteUI/bpachilova/label-position-before-fix
fix(checkbox, radio, switch): add gap for wrapper on sample level
2 parents 0d3ade3 + 50d4489 commit 6de1638

File tree

7 files changed

+12
-2
lines changed

7 files changed

+12
-2
lines changed

samples/inputs/checkbox/label/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<body>
1616
<div id="root">
1717
<div class="container sample center">
18+
<igc-checkbox label-position="before">Label</igc-checkbox>
1819
<div class="wrapper">
1920
<span id="checkbox-label">Label</span>
2021
<igc-checkbox aria-labelledby="checkbox-label" label-position="before"></igc-checkbox>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.wrapper {
22
display: flex;
33
align-items: center;
4+
gap: 0.5rem;
45
}

samples/inputs/radio/label/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
<div style="width: 400px; border: 1px solid gainsboro">
3434
<igc-radio-group>
3535
<igc-radio name="fruit" label-position="before" value="apple">Apple</igc-radio>
36-
<div style="display: flex; align-items: center">
37-
<span id="radio-label">Label</span>
36+
<div class="wrapper">
37+
<span id="radio-label">Orange</span>
3838
<igc-radio
3939
name="fruit"
4040
label-position="before"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.wrapper {
2+
display: flex;
3+
align-items: center;
4+
gap: 0.5rem;
5+
}

samples/inputs/radio/label/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {defineComponents, IgcRadioComponent, IgcRadioGroupComponent } from 'igniteui-webcomponents';
22
import 'igniteui-webcomponents/themes/light/bootstrap.css';
3+
import './RadioLabelStyles.css'
34

45
defineComponents(IgcRadioComponent, IgcRadioGroupComponent);
56
export class RadioLabel {

samples/inputs/switches/label/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<body>
1616
<div id="root">
1717
<div class="container sample center">
18+
<igc-switch label-position="before">Label</igc-switch>
1819
<div class="wrapper">
1920
<span id="switch-label">Label</span>
2021
<igc-switch aria-labelledby="switch-label" label-position="before"></igc-switch>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.wrapper {
22
display: flex;
33
align-items: center;
4+
gap: 0.5rem;
45
}

0 commit comments

Comments
 (0)