From 89c83e1b6f269968cae230fa66de3331b8b95bc0 Mon Sep 17 00:00:00 2001 From: Keryan SANIE Date: Tue, 20 Jun 2023 13:01:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(tab,=20core):=20correctif=20?= =?UTF-8?q?tab=20legacy=20&=20margin=20top=20des=20headings=20[DS-3281]=20?= =?UTF-8?q?(#621)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Corrige la taille de l'icône - Corrige l'alignement du contenu du tab_panel - Ajustement du padding de la tab__list - Retire les margin-top des headings (h1 -> h6) --- src/component/tab/style/_legacy.scss | 32 +++++++++++++++++++++++--- src/core/style/typography/_legacy.scss | 4 ++++ 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/component/tab/style/_legacy.scss b/src/component/tab/style/_legacy.scss index 7cdba584e..4ada07aef 100644 --- a/src/component/tab/style/_legacy.scss +++ b/src/component/tab/style/_legacy.scss @@ -6,15 +6,41 @@ @use 'module/legacy'; @include legacy.is(ie11) { - /** - * Reset liste à puce - */ #{ns(tabs)} { @include disable-list-style-legacy; + @include before { + @include absolute(12v, 0, 0, 0); + } + + #{ns(tabs__list)} { + @include padding(1v 3v); + } + + &__tab { + @include icon-size-legacy(sm); + } + &__panel { + @include padding(0 0.1px); + left: 0; @include enable-list-style-legacy; @include enable-underline-legacy; + + > * { + @include padding-x(4v); + @include padding-x(8v, md); + } + + > *:first-child { + @include padding-top(3v); + @include padding-top(7v, md); + } + + > *:last-child { + @include padding-bottom(4v); + @include padding-bottom(8v, md); + } } } } diff --git a/src/core/style/typography/_legacy.scss b/src/core/style/typography/_legacy.scss index 5bbb27fef..c470c5a0c 100644 --- a/src/core/style/typography/_legacy.scss +++ b/src/core/style/typography/_legacy.scss @@ -7,4 +7,8 @@ @include legacy.is(ie11) { @include enable-list-style-legacy; + + h1, h2, h3, h4, h5, h6 { + @include margin(0 0 6v); + } }