Verified Commit f0525143 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3223147 by kentr, kostyashupenko, nikhil_110, smustgrave, hop, kristen...

Issue #3223147 by kentr, kostyashupenko, nikhil_110, smustgrave, hop, kristen pol: Claro breadcrumb doesn't meet minimum target-size

(cherry picked from commit 72c39ca9)
parent 97cc7747
Loading
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -22,6 +22,30 @@ const testCases = [
  { name: 'Structure Page', path: '/admin/structure' },
  { name: 'Add content type', path: '/admin/structure/types/add' },
  { name: 'Add vocabulary', path: '/admin/structure/taxonomy/add' },
  {
    // Tests long breadcrumb for https://drupal.org/i/3223147.
    name: 'Manage text format, mobile',
    path: '/admin/config/content/formats/manage/restricted_html',
    windowSize: {
      // Dimensions used by Lighthouse for mobile.
      width: 415,
      height: 823,
    },
    options: {
      runOnly: {
        type: 'tag',
        values: [
          'wcag2a',
          'wcag2aa',
          'wcag21a',
          'wcag21aa',
          'best-practice',
          'wcag22a',
          'wcag22aa',
        ],
      },
    },
  },
  // @todo remove the skipped rules below in https://drupal.org/i/3318394.
  {
    name: 'Structure | Block',
@@ -38,6 +62,13 @@ const testCases = [

testCases.forEach((testCase) => {
  adminTest[`Accessibility - Admin Theme: ${testCase.name}`] = (browser) => {
    if (testCase.windowSize) {
      browser.setWindowSize(
        testCase.windowSize.width,
        testCase.windowSize.height,
      );
    }

    browser.drupalLoginAsAdmin(() => {
      browser
        .drupalRelativeURL(testCase.path)
+2 −1
Original line number Diff line number Diff line
@@ -25,11 +25,12 @@

.breadcrumb__item,
.breadcrumb__link {
  display: inline;
  display: inline-block;
  -webkit-text-decoration: none;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  line-height: 1.5rem;
}

.breadcrumb__item + .breadcrumb__item::before {
+2 −1
Original line number Diff line number Diff line
@@ -18,10 +18,11 @@

.breadcrumb__item,
.breadcrumb__link {
  display: inline;
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  line-height: 1.5rem;
}

.breadcrumb__item + .breadcrumb__item::before {