Merge branch 'develop' of https://github.com/understrap/understrap into bug/block-editor-buttons
This commit is contained in:
commit
389d299972
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -9904,7 +9904,7 @@ button.bg-dark:focus {
|
|||
}
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
.sr-only, a.skip-link {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
|
|
@ -9916,7 +9916,7 @@ button.bg-dark:focus {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
.sr-only-focusable:active, .sr-only-focusable:focus {
|
||||
.sr-only-focusable:active, a.skip-link:active, .sr-only-focusable:focus, a.skip-link:focus {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
|
@ -12580,13 +12580,6 @@ article img,
|
|||
height: auto;
|
||||
}
|
||||
|
||||
a.skip-link {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.navbar-dark .navbar-nav .dropdown-menu .nav-link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
|
@ -16153,7 +16146,7 @@ figure.woocommerce-product-gallery__wrapper {
|
|||
content: "\f2e0";
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
.sr-only, a.skip-link {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
|
|
@ -16164,7 +16157,7 @@ figure.woocommerce-product-gallery__wrapper {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
.sr-only-focusable:active, .sr-only-focusable:focus {
|
||||
.sr-only-focusable:active, a.skip-link:active, .sr-only-focusable:focus, a.skip-link:focus {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -7622,7 +7622,8 @@ textarea.form-control-lg {
|
|||
}
|
||||
|
||||
.visually-hidden,
|
||||
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
||||
.visually-hidden-focusable:not(:focus):not(:focus-within),
|
||||
a.skip-link:not(:focus):not(:focus-within) {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
|
|
@ -12377,13 +12378,6 @@ article img,
|
|||
height: auto;
|
||||
}
|
||||
|
||||
a.skip-link {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.navbar-dark .navbar-nav .dropdown-menu .nav-link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -29,7 +29,7 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
|
|||
<!-- ******************* The Navbar Area ******************* -->
|
||||
<header id="wrapper-navbar">
|
||||
|
||||
<a class="skip-link sr-only sr-only-focusable" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
|
||||
<a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
|
||||
|
||||
<?php get_template_part( 'global-templates/navbar', $navbar_type . '-' . $bootstrap_version ); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"@rollup/plugin-replace": "^4.0.0",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"bootstrap": "^5.1.3",
|
||||
"bootstrap4": "npm:bootstrap@^4.6.1",
|
||||
"bootstrap4": "npm:bootstrap@^4.6.0",
|
||||
"browser-sync": "^2.27.7",
|
||||
"browserslist": "^4.20.0",
|
||||
"caniuse-lite": "^1.0.30001313",
|
||||
|
|
|
|||
|
|
@ -81,10 +81,12 @@ article img,
|
|||
|
||||
// Skip to content link
|
||||
a.skip-link {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@if variable-exists('bootstrap4') {
|
||||
@extend .sr-only;
|
||||
@extend .sr-only-focusable;
|
||||
} @else {
|
||||
@extend .visually-hidden-focusable;
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown translation
|
||||
|
|
|
|||
Loading…
Reference in New Issue