Commit 77b938be authored by catch's avatar catch
Browse files

fix: #3619155 Forced-colors problems with admin theme's sidebar toggle button

By: mherchel
By: kentr
By: mgifford
By: f0ns
parent 4240fa27
Loading
Loading
Loading
Loading
+12 −0
Changes for core/themes/default_admin/css/components/sidebar.css: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -142,12 +142,24 @@ body[data-meta-sidebar="open"] {
    &::before {
      background-color: var(--admin-color-primary);
    }

    @media (forced-colors: active) {
      &::before {
        background: buttonText;
      }
    }
  }

  &.is-active {
    background-color: var(--admin-color-bg-item-hover);
  }

  @media (forced-colors: active) {
    &::before {
      background: buttonText;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    transition: background var(--admin-transition-slow);
  }
+12 −0
Changes for core/themes/default_admin/css/components/sidebar.pcss.css: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -137,12 +137,24 @@ body[data-meta-sidebar="open"] {
    &::before {
      background-color: var(--admin-color-primary);
    }

    @media (forced-colors: active) {
      &::before {
        background: buttonText;
      }
    }
  }

  &.is-active {
    background-color: var(--admin-color-bg-item-hover);
  }

  @media (forced-colors: active) {
    &::before {
      background: buttonText;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    transition: background var(--admin-transition-slow);
  }