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(legacy): bugs IE divers [DS-3641] #825

Merged
merged 1 commit into from
Nov 20, 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: 1 addition & 1 deletion src/component/breadcrumb/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ un padding de 4px et une marge négative en compensation sont mis en place afin
transform: none;
visibility: inherit;
overflow: visible;
max-height: initial;
max-height: none;
@include before(none);
}
}
Expand Down
16 changes: 16 additions & 0 deletions src/component/button/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#{ns(btn)} {
@include icon-legacy(null, sm);

&[href] {
text-decoration: none;
}

@include class-not-start-with(#{ns(btn--icon-, '')}) {
@include has-icon {
@include icon-legacy(null, md);
Expand Down Expand Up @@ -52,6 +56,18 @@
@include icon-legacy(theme-fill, sm);
}

#{ns(btn--briefcase)} {
@include icon-legacy(briefcase-fill, sm);
}

#{ns(btn--account)} {
@include icon-legacy(account-circle-fill, sm);
}

#{ns(btn--team)} {
@include icon-legacy(team-line, sm);
}

#{ns-group(btns)} {
@include disable-list-style-legacy(true);

Expand Down
16 changes: 16 additions & 0 deletions src/component/card/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@
#{ns(tile__title a)} {
@include icon-legacy(download-line, null, after);
}

#{ns(card__header)} {
padding-top: 56.25%;

@include respond-from(md) {
padding-top: 0;
}

#{ns(card__img)} {
img {
height: auto !important;
width: auto;
margin: auto;
}
}
}
}

&#{ns(enlarge-link)} {
Expand Down
4 changes: 3 additions & 1 deletion src/component/card/template/ejs/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

* header.img (object, optional) : paramètres de l'image

* header.taxonomy (object, optional) : Taxonomie
* header.vid (object, optional) : paramètres de vidéo

* header.badgesGroup (array, optional) : Groupe de badges (voir badge)

%>

Expand Down
12 changes: 5 additions & 7 deletions src/component/checkbox/deprecated/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
&--sm {
label {
&::before {
@include margin-top(4v);
@include margin-top(1v);
}
}
}
}
}
}

#{ns-group(checkbox)} {
input[type='checkbox'] {
margin-top: spacing.space(3v);
input[type='checkbox'] {
margin-top: spacing.space(3v);
}
}
}
}
15 changes: 15 additions & 0 deletions src/component/checkbox/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@

@use 'module/selector';
@use 'module/legacy';
@use 'module/spacing';

@include legacy.is(ie11) {
#{selector.ns(checkbox-group)} {
input[type="checkbox"] {
opacity: 1;
@include margin-top(0);
}
}

#{selector.ns(fieldset__content)} {
#{selector.ns(checkbox-group)} {
input[type="checkbox"] {
@include margin-top(6v);
}
}

+ #{selector.ns(valid-text)},
+ #{selector.ns(error-text)} {
@include margin-top(4v);
}
}
}
4 changes: 2 additions & 2 deletions src/component/connect/style/module/_plus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
@include padding-right(3em);

@include after ('+', block) {
@include absolute(null, 0.25em);
@include absolute(null, 0.25em, 0);
font-size: 3em;
font-weight: bold;
line-height: 1;
transform: translate(5%, -10%);
transform: translate(5%, -17%);
}
}
}
6 changes: 6 additions & 0 deletions src/component/header/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
}
}

&__operator {
img {
height: auto !important;
}
}

#{ns(modal)} {
@include respond-from(lg) {
position: static;
Expand Down
8 changes: 4 additions & 4 deletions src/component/pagination/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
&__link {
@include color.transparent-background((legacy: true, hover: true));

&--first {
#{ns(pagination)} &--first {
@include icon-legacy(arrow-left-s-first-line, md);
}

&--prev {
#{ns(pagination)} &--prev {
@include icon-legacy(arrow-left-s-line, md);
}

&--next {
#{ns(pagination)} &--next {
@include icon-legacy(arrow-right-s-line, md);
}

&--last {
#{ns(pagination)} &--last {
@include icon-legacy(arrow-right-s-last-line, md);
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/component/quote/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#{ns(quote)} {
@include icon-legacy(quote-line,lg);

&__source {
@include disable-list-style-legacy(true);
}

blockquote {
max-width: 100%;
}
Expand Down
18 changes: 16 additions & 2 deletions src/component/range/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@include legacy.is(ie11) {
#{selector.ns-group(range)} {
output {
min-width: spacing.space(12v);
min-width: spacing.space(4v);
}

input[type=range] {
Expand All @@ -27,8 +27,15 @@
}

&#{selector.ns-attr(js-range)} {
#{selector.ns(label)} {
&::before,
&::after {
top: calc(100% + #{spacing.space(12v)});
}
}

input[type=range] {
@include margin-bottom(1v);
@include margin-bottom(4v);

@include selector.range-ms-fill-lower {
@include height(1v);
Expand Down Expand Up @@ -62,6 +69,13 @@

&--sm {
&#{selector.ns-attr(js-range)} {
#{selector.ns(label)} {
&::before,
&::after {
top: calc(100% + #{spacing.space(10v)});
}
}

input[type=range] {
@include selector.range-ms-track {
@include height(0.5v);
Expand Down
7 changes: 6 additions & 1 deletion src/component/segmented/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
input + label {
@include icon-size-legacy(sm, before) {
vertical-align: -2px;
outline-width: 0;
}
}

input:focus + label {
@include before {
outline: none;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/component/tag/style/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@include legacy.is(ie11) {
#{ns(tag)} {
@include icon-legacy(null, sm);
text-decoration: none;

#{ns(tag)}--sm {
@include icon-legacy(null, xs, before);
Expand Down
2 changes: 1 addition & 1 deletion src/component/tag/style/_scheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
}

a,
a[href],
button,
input[type=button] {
&#{ns(tag)} {
Expand Down
11 changes: 2 additions & 9 deletions src/core/style/action/legacy/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,20 @@
////

@use 'module/legacy';
@use 'module/spacing';

@include legacy.is(ie11) {
[href],
#{ns(reset-link)} {
&[href],
[href] {
text-decoration: underline;
}
}

#{ns(raw-link)} {
&[href],
[href] {
text-decoration: none;
@include after(none);
}
}

[target="_blank"] {
@include icon-legacy(external-link-line, sm, after) {
content: "";
vertical-align: sub;
}
}
}
4 changes: 4 additions & 0 deletions src/core/style/typography/_legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
h6 {
@include margin(0 0 6v);
}

p {
@include margin(0 0 4v);
}
}