Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/inputs/checkbox/label/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<body>
<div id="root">
<div class="container sample center">
<igc-checkbox label-position="before">Label</igc-checkbox>
<div class="wrapper">
<span id="checkbox-label">Label</span>
<igc-checkbox aria-labelledby="checkbox-label" label-position="before"></igc-checkbox>
Expand Down
1 change: 1 addition & 0 deletions samples/inputs/checkbox/label/src/CheckboxLabelStyles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
}
4 changes: 2 additions & 2 deletions samples/inputs/radio/label/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<div style="width: 400px; border: 1px solid gainsboro">
<igc-radio-group>
<igc-radio name="fruit" label-position="before" value="apple">Apple</igc-radio>
<div style="display: flex; align-items: center">
<span id="radio-label">Label</span>
<div class="wrapper">
<span id="radio-label">Orange</span>
<igc-radio
name="fruit"
label-position="before"
Expand Down
5 changes: 5 additions & 0 deletions samples/inputs/radio/label/src/RadioLabelStyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
}
1 change: 1 addition & 0 deletions samples/inputs/radio/label/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {defineComponents, IgcRadioComponent, IgcRadioGroupComponent } from 'igniteui-webcomponents';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
import './RadioLabelStyles.css'

defineComponents(IgcRadioComponent, IgcRadioGroupComponent);
export class RadioLabel {
Expand Down
1 change: 1 addition & 0 deletions samples/inputs/switches/label/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<body>
<div id="root">
<div class="container sample center">
<igc-switch label-position="before">Label</igc-switch>
<div class="wrapper">
<span id="switch-label">Label</span>
<igc-switch aria-labelledby="switch-label" label-position="before"></igc-switch>
Expand Down
1 change: 1 addition & 0 deletions samples/inputs/switches/label/src/SwitchLabelStyles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
}