Skip to content

Commit

Permalink
Merge pull request #1138 from vektor-inc/change/access
Browse files Browse the repository at this point in the history
グローバルナビゲーションがタブキーで子階層も操作できるように調整
  • Loading branch information
kurudrive authored May 15, 2024
2 parents c626f29 + d5ffae5 commit 8f2f871
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 20 deletions.
19 changes: 19 additions & 0 deletions _g2/assets/_scss/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,22 @@ iframe {
font-weight: 500;
}
/* ヘッダーロゴの文字の太さを統一 終了 */

/*-------------------------------------------*/
/* gMenu
/* ※ foundation 部分のテーマ側での上書き用
/*-------------------------------------------*/
// タブキー操作対応
.device-pc .gMenu li {
&:focus-within {
> .sub-menu {
opacity: 1;
max-height: 80vh;
overflow-y: auto;
a:focus-within {
color:#fff;
background-color: var(--vk-color-primary-vivid);
}
}
}
}
2 changes: 1 addition & 1 deletion _g2/assets/css/common.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g2/assets/css/common_editor.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion _g2/design-skin/foundation/_scss/_outer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ body {
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
-webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand Down
1 change: 0 additions & 1 deletion _g3/assets/_scss/_utils.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
-webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
padding: $menu_padding_vertical $menu_padding_horizontal;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
display: block;
&:focus-within,
&:hover {
background-color: var(--vk-color-primary-vivid);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
@charset "utf-8";

/**** CAUTION ************************
If you want to modify this file,
If this file included in plugin that, you don't modify this file.
Original file path is themes/lightning/design-skin/foundation/ that, please modify original files.
*************************************/

/*-------------------------------------------*/
/* 第二階層マウスホバー展開処理
/*-------------------------------------------*/
Expand All @@ -33,11 +25,14 @@ Original file path is themes/lightning/design-skin/foundation/ that, please modi
}

.device-pc & {

&:hover > .sub-menu {
opacity: 1;
max-height: 80vh;
overflow-y: auto;
&:focus-within,
&:hover {
> .sub-menu, // 2 layers
li:focus-within > .sub-menu { // 3 layers after
opacity: 1;
max-height: 80vh;
overflow-y: auto;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion _g3/assets/css/style-theme-json.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g3/assets/css/style.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ https://www.vektor-inc.co.jp/inquiry/

== Changelog ==

[ G3 ][ Design Bug Fix ][ OriginIII ]Fixed text-decoration-color color for parent elements with `has-black-background-color` class or elements with `has-text-color` class.
[ G3 / G2 ][ Specification Change ] Support navigation operations using the Tab key.
[ G3 ][ Design Bug Fix ][ OriginIII ] Fixed text-decoration-color color for parent elements with `has-black-background-color` class or elements with `has-text-color` class.

v15.21.1
[ G3 with theme.json ] Fixed the alignment issue of the title in the post editing screen.
Expand Down

0 comments on commit 8f2f871

Please sign in to comment.