Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix(form, input): met a jour les espacements des icônes [DS-3474, DS-3504] #766

Merged
merged 4 commits into from
Nov 7, 2023
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
2 changes: 2 additions & 0 deletions src/component/consent/example/sample/modal/body.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ function getRadios (id, itemId, type) {
let elementAccept = type === 'all' ? {label: 'Tout accepter'} : { label : 'Accepter'};
let elementRefuse = type === 'all' ? {label: 'Tout refuser'} : { label : 'Refuser'};
let disabled = type === 'mandatory';
let checked = type === 'mandatory';

return [
{
name: id + '-' + name,
...elementAccept,
id: id + '-' + name + '-accept',
checked: checked
},
{
name: id + '-' + name,
Expand Down
4 changes: 2 additions & 2 deletions src/component/form/deprecated/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
&--inline {
#{ns(fieldset__content)} {
@include display-flex(null, baseline, flex-start, wrap);
@include margin(-3v 0 0 2v);
@include margin(-3v 2v 0 2v);
}

#{ns-group(checkbox)} {
Expand Down Expand Up @@ -58,7 +58,7 @@

&__content {
@include relative;
@include margin-left(2v);
@include margin(0 2v);
width: 100%;

#{ns-group(radio)},
Expand Down
8 changes: 4 additions & 4 deletions src/component/input/input-base/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@

@supports selector(::-webkit-calendar-picker-indicator) {
background-repeat: no-repeat;
background-position: spacing.space(calc(100% - 3v) 50%);
background-position: spacing.space(calc(100% - 4v) 50%);
background-size: spacing.space(4v) spacing.space(4v);
@include padding-right(9v);
@include padding-right(12v);

&::-webkit-calendar-picker-indicator {
display: block;
Expand All @@ -50,11 +50,11 @@

@include has-icon {
#{ns(input)} {
@include padding-right(10v);
@include padding-right(12v);
}

@include icon-size(sm, before) {
@include absolute(3v, 3v, 3v);
@include absolute(3v, 4v, 3v);
@include margin(auto);
pointer-events: none;
}
Expand Down