Skip to content

Commit 6c9360c

Browse files
committed
feat: layout icon hover style
1 parent 2080944 commit 6c9360c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/components/ContentWrap.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,11 +1103,11 @@ export default class ContentWrap extends Component {
11031103
</div>
11041104
{window.zenumlDesktop ? null : (
11051105
<div className="shrink-0 relative z-10 bg-gray-200 py-2 px-6 flex justify-between">
1106-
<div className="flex gap-4 items-center">
1106+
<div className="flex gap-4 items-center text-black-100">
11071107
<button
11081108
onClick={() => this.props.layoutBtnClickHandler(1)}
11091109
id="layoutBtn1"
1110-
className="w-7 h-7 hover:bg-gray-300 flex items-center justify-center rounded-lg duration-200"
1110+
className="w-7 h-7 hover:text-gray-800 flex items-center justify-center rounded-lg duration-200"
11111111
aria-label="Switch to layout with preview on right"
11121112
>
11131113
<svg className="w-5 h-5">
@@ -1117,7 +1117,7 @@ export default class ContentWrap extends Component {
11171117
<button
11181118
onClick={() => this.props.layoutBtnClickHandler(2)}
11191119
id="layoutBtn2"
1120-
className="w-7 h-7 hover:bg-gray-300 flex items-center justify-center rounded-lg duration-200"
1120+
className="w-7 h-7 hover:text-gray-800 flex items-center justify-center rounded-lg duration-200"
11211121
aria-label="Switch to layout with preview on bottom"
11221122
>
11231123
<svg className="w-5 h-5">
@@ -1127,7 +1127,7 @@ export default class ContentWrap extends Component {
11271127
<button
11281128
onClick={() => this.props.layoutBtnClickHandler(3)}
11291129
id="layoutBtn3"
1130-
className="w-7 h-7 hover:bg-gray-300 flex items-center justify-center rounded-lg duration-200"
1130+
className="w-7 h-7 hover:text-gray-800 flex items-center justify-center rounded-lg duration-200"
11311131
aria-label="Switch to layout with preview on left"
11321132
>
11331133
<svg className="w-5 h-5">

src/components/Icons.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ export function Icons() {
254254
</symbol>
255255
<symbol id="icon-layout-1" viewBox="0 0 20 18">
256256
<path
257-
fill="#7C7C7C"
257+
fill="currentColor"
258258
d="M16 0.25H4C1.582 0.25 0.25 1.582 0.25 4V14C0.25 16.418 1.582 17.75 4 17.75H16C18.418 17.75 19.75 16.418 19.75 14V4C19.75 1.582 18.418 0.25 16 0.25ZM4 1.75H12.25V8.25H1.75V4C1.75 2.423 2.423 1.75 4 1.75ZM1.75 14V9.75H12.25V16.25H4C2.423 16.25 1.75 15.577 1.75 14ZM18.25 14C18.25 15.577 17.577 16.25 16 16.25H13.75V1.75H16C17.577 1.75 18.25 2.423 18.25 4V14Z"
259259
/>
260260
</symbol>
261261
<symbol id="icon-layout-2" viewBox="0 0 20 18">
262262
<path
263263
d="M16 0.25H4C1.582 0.25 0.25 1.582 0.25 4V14C0.25 16.418 1.582 17.75 4 17.75H16C18.418 17.75 19.75 16.418 19.75 14V4C19.75 1.582 18.418 0.25 16 0.25ZM18.25 4V10.25H10.75V1.75H16C17.577 1.75 18.25 2.423 18.25 4ZM4 1.75H9.25V10.25H1.75V4C1.75 2.423 2.423 1.75 4 1.75ZM16 16.25H4C2.423 16.25 1.75 15.577 1.75 14V11.75H18.25V14C18.25 15.577 17.577 16.25 16 16.25Z"
264-
fill="#7C7C7C"
264+
fill="currentColor"
265265
/>
266266
</symbol>
267267
<symbol id="icon-layout-3" viewBox="0 0 20 18">
@@ -274,7 +274,7 @@ export function Icons() {
274274
>
275275
<path
276276
d="M16 0.25H4C1.582 0.25 0.25 1.582 0.25 4V14C0.25 16.418 1.582 17.75 4 17.75H16C18.418 17.75 19.75 16.418 19.75 14V4C19.75 1.582 18.418 0.25 16 0.25ZM18.25 4V8.25H7.75V1.75H16C17.577 1.75 18.25 2.423 18.25 4ZM1.75 14V4C1.75 2.423 2.423 1.75 4 1.75H6.25V16.25H4C2.423 16.25 1.75 15.577 1.75 14ZM16 16.25H7.75V9.75H18.25V14C18.25 15.577 17.577 16.25 16 16.25Z"
277-
fill="#7C7C7C"
277+
fill="currentColor"
278278
/>
279279
</svg>
280280
</symbol>

tailwind.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
500: '#A5A5A5',
2727
600: '#5A5A5A',
2828
700: '#454856',
29+
800: '#344054'
2930
},
3031
primary: {
3132
100: '#E2E5E9',
@@ -36,6 +37,7 @@ module.exports = {
3637
400: '#98a2b3',
3738
},
3839
black: {
40+
100: '#7C7C7C',
3941
400: '#2c2d31',
4042
500: '#202020',
4143
600: '#3e3e42',

0 commit comments

Comments
 (0)