feat: 🎸 add inline aligntment support to checkbox and radio
This commit is contained in:
1 parent
a96689e2cc
commit
5d6da1e52d
5 files changed
+15
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
<div class="rose-form-checkbox{{if @error " error"}}">
|
||||
<div class="rose-form-checkbox{{if @error " error"}} {{if @inline "inline"}}">
|
||||
|
||||
<Input
|
||||
...attributes
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div class="{{if @inline 'radio-group-inline'}}">
|
||||
{{yield (hash
|
||||
radio=(component 'rose/form/radio/radio' name=@name selectedValue=@selectedValue disabled=@disabled changed=@changed)
|
||||
)}}
|
||||
</div>
|
||||
@@ -1,8 +1,8 @@
|
||||
<div class="rose-form-radio{{if @error " error"}}">
|
||||
<div class="rose-form-radio{{if @error " error"}} {{if @inline "inline"}}">
|
||||
|
||||
<RadioButton
|
||||
...attributes
|
||||
@radioClass="rose-form-radio-field"
|
||||
@radioClass="rose-form-radio-field"
|
||||
@radioId={{this.id}}
|
||||
type="radio"
|
||||
disabled={{@disabled}}
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
@use '../../utilities/type';
|
||||
|
||||
.rose-form-checkbox {
|
||||
&.inline {
|
||||
display: inline-block;
|
||||
margin-right: sizing.rems(s);
|
||||
}
|
||||
@include type.type(m);
|
||||
position: relative;
|
||||
margin-bottom: sizing.rems(m);
|
||||
|
||||
@@ -21,6 +21,12 @@ $radio-svg: (
|
||||
);
|
||||
|
||||
$data-svg-prefix: 'data:image/svg+xml;utf-8,';
|
||||
.radio-group-inline {
|
||||
display: flex;
|
||||
.rose-form-radio {
|
||||
margin-right: sizing.rems(s);
|
||||
}
|
||||
}
|
||||
|
||||
.rose-form-radio {
|
||||
@include type.type(m);
|
||||
|
||||
Reference in new issue
Block a user