Skip to content
Snippets Groups Projects
Verified Commit 8ed1f23d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3274080 by mherchel, andy-blum, lauriii: Olivero's mobile menu...

Issue #3274080 by mherchel, andy-blum, lauriii: Olivero's mobile menu experience doesn't properly adapt to forced colors
parent a2ce4d46
No related branches found
No related tags found
37 merge requests!12227Issue #3181946 by jonmcl, mglaman,!7471uncessary 5 files are moved from media-library folder to misc folder,!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!54479.5.x SF update,!5014Issue #3071143: Table Render Array Example Is Incorrect,!4868Issue #1428520: Improve menu parent link selection,!4289Issue #1344552 by marcingy, Niklas Fiekas, Ravi.J, aleevas, Eduardo Morales...,!4114Issue #2707291: Disable body-level scrolling when a dialog is open as a modal,!3630Issue #2815301 by Chi, DanielVeza, kostyashupenko, smustgrave: Allow to create...,!3291Issue #3336463: Rewrite rules for gzipped CSS and JavaScript aggregates never match,!3143Issue #3313342: [PHP 8.1] Deprecated function: strpos(): Passing null to parameter #1 LayoutBuilderUiCacheContext.php on line 28,!3102Issue #3164428 by DonAtt, longwave, sahil.goyal, Anchal_gupta, alexpott: Use...,!2853#3274419 Makes BaseFieldOverride inherit the internal property from the base field.,!2719Issue #3110137: Remove Classy from core.,!2437Issue #3238257 by hooroomoo, Wim Leers: Fragment link pointing to <textarea>...,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2074Issue #2707689: NodeForm::actions() checks for delete access on new entities,!2062Issue #3246454: Add weekly granularity to views date sort,!1591Issue #3199697: Add JSON:API Translation experimental module,!1484Exposed filters get values from URL when Ajax is on,!1255Issue #3238922: Refactor (if feasible) uses of the jQuery serialize function to use vanillaJS,!1254Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS,!1162Issue #3100350: Unable to save '/' root path alias,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!957Added throwing of InvalidPluginDefinitionException from getDefinition().,!925Issue #2339235: Remove taxonomy hard dependency on node module,!877Issue #2708101: Default value for link text is not saved,!873Issue #2875228: Site install not using batch API service,!872Draft: Issue #3221319: Race condition when creating menu links and editing content deletes menu links,!844Resolve #3036010 "Updaters",!712Issue #2909128: Autocomplete intermittent on Chrome Android,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493,!485Sets the autocomplete attribute for username/password input field on login form.,!30Issue #3182188: Updates composer usage to point at ./vendor/bin/composer
......@@ -163,6 +163,7 @@ bundleless
bundlenode
buttonpane
buttonset
buttontext
buytaert
cacheability
cacheable
......
......@@ -53,8 +53,10 @@
top: 0;
visibility: hidden;
overflow: auto;
/* Ensure that header nav not use additional space and force
system branding block text to unnecessarily wrap. */
/**
* Ensure that header nav not use additional space and force system branding
* block text to unnecessarily wrap.
*/
flex-basis: 0;
flex-grow: 1; /* Necessary for IE11. */
width: 100%;
......@@ -62,7 +64,13 @@
height: 100%;
padding-top: 0;
padding-bottom: var(--sp);
border-top: solid var(--color--white) var(--sp3); /* Create room for the "close" button. */
/**
* Create room for the "close" button. We cannot use margin because the
* mobile navigation needs to slide beneath the button, but we also cannot
* use padding because that would enable the button to scroll out of the
* viewport on short screens.
*/
border-top: solid var(--color--white) var(--sp3);
background-color: var(--color--white);
box-shadow: 0 0 72px rgba(0, 0, 0, 0.1)
}
......@@ -109,6 +117,20 @@
}
}
.header-nav {
/*
* Ensure top border has the same color as the background when in forced colors.
*/
}
@media (forced-colors: active) {
.header-nav {
border-top-color: canvas
}
}
/*
* Only apply transition styles when JS is loaded. This
* works around https://bugs.chromium.org/p/chromium/issues/detail?id=332189
......@@ -268,6 +290,13 @@ body.is-always-mobile-nav .header-nav {
background: var(--color--primary-40)
}
@media (forced-colors: active) {
.header-nav-overlay {
background: canvastext
}
}
.is-overlay-active .header-nav-overlay {
display: block
}
......@@ -12,8 +12,10 @@
inset-inline-start: 100%;
visibility: hidden;
overflow: auto;
/* Ensure that header nav not use additional space and force
system branding block text to unnecessarily wrap. */
/**
* Ensure that header nav not use additional space and force system branding
* block text to unnecessarily wrap.
*/
flex-basis: 0;
flex-grow: 1; /* Necessary for IE11. */
width: 100%;
......@@ -22,7 +24,13 @@
padding-block: 0 var(--sp);
padding-inline-start: var(--sp);
padding-inline-end: var(--sp);
border-block-start: solid var(--color--white) var(--sp3); /* Create room for the "close" button. */
/**
* Create room for the "close" button. We cannot use margin because the
* mobile navigation needs to slide beneath the button, but we also cannot
* use padding because that would enable the button to scroll out of the
* viewport on short screens.
*/
border-block-start: solid var(--color--white) var(--sp3);
background-color: var(--color--white);
box-shadow: 0 0 72px rgba(0, 0, 0, 0.1);
......@@ -48,6 +56,13 @@
@media (--lg) {
grid-column: 5 / 14;
}
/*
* Ensure top border has the same color as the background when in forced colors.
*/
@media (forced-colors: active) {
border-top-color: canvas;
}
}
/*
......@@ -151,6 +166,10 @@ body.is-always-mobile-nav {
opacity: 0.2;
background: var(--color--primary-40);
@media (forced-colors: active) {
background: canvastext;
}
@nest .is-overlay-active & {
display: block;
}
......
......@@ -217,6 +217,19 @@
border-top: solid 5px var(--color--primary-50);
}
@media (forced-colors: active) {
.block-search-narrow .search-form__submit .icon--search {
background: buttontext;
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='26' height='27.2' viewBox='0 0 26 27.2'%3e %3cpath fill='%23fff' d='M25.8,25.5l-5.3-5.3c2.1-2.1,3.4-5.1,3.4-8.3C23.9,5.3,18.5,0,11.9,0C5.3,0,0,5.3,0,11.9c0,6.6,5.3,11.9,11.9,11.9c2.6,0,5.1-0.9,7-2.3l5.4,5.4c0.4,0.4,1,0.4,1.4,0C26.1,26.6,26.1,25.9,25.8,25.5z M11.9,21.9c-5.5,0-9.9-4.4-9.9-9.9S6.4,2,11.9,2c5.5,0,9.9,4.4,9.9,9.9S17.4,21.9,11.9,21.9z'/%3e%3c/svg%3e");
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center
}
}
.block-search-narrow .search-form__submit:focus {
outline: solid 4px transparent;
outline-offset: -4px;
......
......@@ -113,6 +113,13 @@
transform-origin: left; /* LTR */
border-block-start: solid 5px var(--color--primary-50);
}
@media (forced-colors: active) {
background: buttontext;
mask-image: url("../../images/search--white.svg");
mask-repeat: no-repeat;
mask-position: center;
}
}
&:focus {
......
......@@ -134,8 +134,8 @@
position: relative;
display: block;
width: var(--sp2);
height: 0.1875rem;
background-color: var(--color--primary-50)
height: 0;
border-top: solid 3px var(--color--primary-50)
}
[dir="ltr"] .mobile-nav-button__icon:before {
......@@ -148,12 +148,12 @@
.mobile-nav-button__icon:before {
position: absolute;
top: -0.5rem;
top: -0.6875rem;
width: 100%;
height: 0.1875rem;
height: 0;
content: "";
transition: all 0.2s;
background-color: var(--color--primary-50);
border-top: solid 3px var(--color--primary-50);
}
[dir="ltr"] .mobile-nav-button__icon:after {
......@@ -169,14 +169,14 @@
top: auto;
bottom: -0.5rem;
width: 100%;
height: 0.1875rem;
height: 0;
content: "";
transition: all 0.2s;
background-color: var(--color--primary-50);
border-top: solid 3px var(--color--primary-50);
}
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon {
background-color: transparent
border-top: 0
}
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon:before {
......
......@@ -65,18 +65,18 @@
position: relative;
display: block;
width: var(--sp2);
height: 3px;
background-color: var(--color--primary-50);
height: 0;
border-top: solid 3px var(--color--primary-50);
&:before {
position: absolute;
inset-block-start: -8px;
inset-block-start: -11px;
inset-inline-start: 0;
width: 100%;
height: 3px;
height: 0;
content: "";
transition: all 0.2s;
background-color: var(--color--primary-50);
border-top: solid 3px var(--color--primary-50);
}
&:after {
......@@ -84,15 +84,15 @@
inset-block: auto -8px;
inset-inline-start: 0;
width: 100%;
height: 3px;
height: 0;
content: "";
transition: all 0.2s;
background-color: var(--color--primary-50);
border-top: solid 3px var(--color--primary-50);
}
}
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon {
background-color: transparent;
border-top: 0;
&:before {
inset-block-start: 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment