Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev/scss/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
@forward "reset/forms";
@forward "reset/table";
@forward "reset/list";
@forward "reset/focus";
23 changes: 23 additions & 0 deletions dev/scss/reset/_focus.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Global :focus-visible — two-tone outline visible on any background.
* Black inner ring + white outer glow gives >=3:1 contrast on both
* light and dark surfaces without relying on browser defaults.
*/

a,
button,
input,
select,
textarea,
[tabindex]:not([tabindex="-1"]) {
&:focus-visible {
outline: 2px solid #000;
outline-offset: 2px;
box-shadow: 0 0 0 4px #fff;
}

&:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}
}
4 changes: 0 additions & 4 deletions dev/scss/reset/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ button,
border-radius: variables.$border-radius;
transition: all .3s;

&:focus:not(:focus-visible) {
outline: none;
}

&:hover,
&:focus {
color: #fff;
Expand Down
1 change: 1 addition & 0 deletions dev/scss/reset/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ body {
background-color: #fff;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: clip;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion dev/scss/theme/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
margin-inline: calc(50% - 50vw);
max-width: 100vw;
width: 100vw;
overflow-x: hidden;

img {
width: 100vw;
width: 100%;
}
}

Expand Down
44 changes: 30 additions & 14 deletions dev/scss/theme/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@
padding: 8px 15px;
}

ul a {
color: variables.$gray-dark;

&:hover,
&:focus {
color: variables.$gray-darker;
}
}

&.menu-item-has-children {
padding-inline-end: 15px;

Expand All @@ -116,14 +125,15 @@
}
}

ul {
background: #fff;
display: none;
min-width: 150px;
position: absolute;
z-index: 2;
left: 0;
top: 100%;
ul {
background: #fff;
display: none;
min-width: 150px;
max-width: calc(100vw - 2rem);
position: absolute;
z-index: 2;
inset-inline-start: 0;
inset-block-start: 100%;

li {
border-block-end: variables.$gray-lighter 1px solid;
Expand All @@ -145,20 +155,26 @@
}

ul {
left: 100%;
top: 0;
inset-inline-start: 100%;
inset-block-start: 0;
}
}

&:hover {
&:last-child > ul,
&:nth-last-child(2) > ul {
inset-inline-start: auto;
inset-inline-end: 0;
}

& > ul {
display: block;
}
&:hover {

& > ul {
display: block;
}
}
}
}
}

footer {

Expand Down
3 changes: 2 additions & 1 deletion includes/settings/settings-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ protected function register_tab_controls() {
'hello_header_menu_display' => 'yes',
],
'selectors' => [
'.site-header .site-navigation ul.menu li a' => 'color: {{VALUE}};',
'.site-header .site-navigation ul.menu > li > a' => 'color: {{VALUE}};',
'.site-header .site-navigation ul.menu > li.menu-item-has-children::after' => 'color: {{VALUE}};',
],
]
);
Expand Down
2 changes: 1 addition & 1 deletion template-parts/dynamic-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<?php endif; ?>
<?php if ( $header_mobile_nav_menu ) : ?>
<div class="site-navigation-toggle-holder <?php echo esc_attr( hello_show_or_hide( 'hello_header_menu_display' ) ); ?>">
<button type="button" class="site-navigation-toggle" aria-label="<?php echo esc_attr( 'Menu', 'hello-elementor' ); ?>">
<button type="button" class="site-navigation-toggle" aria-expanded="false" aria-label="<?php echo esc_attr__( 'Menu', 'hello-elementor' ); ?>">
<span class="site-navigation-toggle-icon" aria-hidden="true"></span>
</button>
</div>
Expand Down
Loading