diff --git a/src/implementations/twig/utilities/html-tag/index.story.js b/src/implementations/twig/utilities/html-tag/index.story.js index 384fd561f43..f1e82154f39 100644 --- a/src/implementations/twig/utilities/html-tag/index.story.js +++ b/src/implementations/twig/utilities/html-tag/index.story.js @@ -1,6 +1,9 @@ import withCode from '@ecl/storybook-addon-code'; import getSystem from '@ecl/builder/utils/getSystem'; +const publicUrl = process.env.PUBLIC_URL || ''; +const exampleLink = `${publicUrl}/example`; + export default { title: 'Utilities/HTML tag styling', decorators: [withCode], @@ -18,7 +21,7 @@ export const Default = () => ` Link and button
- Link

+ Link

@@ -44,7 +47,7 @@ export const Default = () => `
  • Unordered list
  • Unordered list
  • @@ -54,7 +57,7 @@ export const Default = () => `
  • Ordered list
  • Ordered list
      -
    1. Nested ordered list
    2. +
    3. Nested ordered list
    4. Nested ordered list
  • diff --git a/src/implementations/vanilla/components/description-list/description-list.scss b/src/implementations/vanilla/components/description-list/description-list.scss index 1c37655f61b..c58bdfdf5f4 100644 --- a/src/implementations/vanilla/components/description-list/description-list.scss +++ b/src/implementations/vanilla/components/description-list/description-list.scss @@ -187,7 +187,8 @@ $description-list: null !default; var(--max-w) ); - .ecl-description-list__term { + .ecl-description-list__term, + %ecl-description-list__term { margin-bottom: 0; margin-top: var(--s-l); } diff --git a/src/implementations/vanilla/components/ordered-list/ordered-list.scss b/src/implementations/vanilla/components/ordered-list/ordered-list.scss index 671b24906ab..59c198d7ad7 100644 --- a/src/implementations/vanilla/components/ordered-list/ordered-list.scss +++ b/src/implementations/vanilla/components/ordered-list/ordered-list.scss @@ -42,7 +42,8 @@ $list: null !default; padding-bottom: var(--s-2xs); } - .ecl-link { + .ecl-link, + %ecl-ordered-list-link { text-decoration: none; &:hover { diff --git a/src/implementations/vanilla/components/unordered-list/unordered-list.scss b/src/implementations/vanilla/components/unordered-list/unordered-list.scss index 0b4a404bf54..faecba501a1 100644 --- a/src/implementations/vanilla/components/unordered-list/unordered-list.scss +++ b/src/implementations/vanilla/components/unordered-list/unordered-list.scss @@ -36,7 +36,8 @@ $list: null !default; padding-bottom: 0; } - .ecl-link { + .ecl-link, + %ecl-unordered-list-link { text-decoration: none; &:hover { diff --git a/src/presets/ec/src/ec-default.scss b/src/presets/ec/src/ec-default.scss index 87d1dd423d2..a855c682739 100644 --- a/src/presets/ec/src/ec-default.scss +++ b/src/presets/ec/src/ec-default.scss @@ -110,6 +110,10 @@ .ecl ul li:not([class*='ecl-'], [class*='wt-'], [class*='highcharts-']), .ecl ul li:is([class*='ecl-u-']) { @extend %ecl-unordered-list__item; + + a { + @extend %ecl-unordered-list-link; + } } .ecl ul ol li:not([class*='ecl-'], [class*='wt-'], [class*='highcharts-']), @@ -132,6 +136,10 @@ .ecl ol li:not([class*='ecl-'], [class*='wt-']), .ecl ol li:is([class*='ecl-u-']) { @extend %ecl-ordered-list__item; + + a { + @extend %ecl-ordered-list-link; + } } .ecl dl:not([class*='ecl-'], [class*='wt-']),