diff --git a/src/actions/actionZindex.tsx b/src/actions/actionZindex.tsx index cbbd26ef0..9f591f344 100644 --- a/src/actions/actionZindex.tsx +++ b/src/actions/actionZindex.tsx @@ -10,92 +10,66 @@ import { getSelectedIndices } from "../scene"; import { KEYS } from "../keys"; import { t } from "../i18n"; +const ACTIVE_ELEM_COLOR = "#ffa94d"; // OC ORANGE 4 + const ICONS = { bringForward: ( - - + + ), sendBackward: ( - + ), bringToFront: ( - + ), sendToBack: ( - + ), diff --git a/src/components/ToolIcon.scss b/src/components/ToolIcon.scss index c1281843a..1905a1d5f 100644 --- a/src/components/ToolIcon.scss +++ b/src/components/ToolIcon.scss @@ -60,6 +60,9 @@ &:focus + .ToolIcon__icon { box-shadow: 0 0 0 2px #a5d8ff; } + &:active + .ToolIcon__icon { + background-color: #adb5bd; + } } .ToolIcon.ToolIcon__lock { @@ -91,4 +94,5 @@ font-size: 0.5em; color: #adb5bd; // OC GRAY 5 font-family: Arial, Helvetica, sans-serif; + user-select: none; } diff --git a/src/styles.scss b/src/styles.scss index 3e46dc842..3275066d8 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -100,7 +100,7 @@ button, } &:active { - background-color: #ced4da; + background-color: #adb5bd; } &:disabled { @@ -114,6 +114,9 @@ button, &:hover { background-color: #ced4da; } + &:active { + background-color: #adb5bd; + } } .App-menu { @@ -250,8 +253,16 @@ button, } .zIndexButton { - width: 26px; margin: 0 5px; + padding: 5px; + display: inline-flex; + align-items: center; + justify-content: center; + + svg { + width: 18px; + height: 18px; + } } .scroll-back-to-content {