Skip to content

Commit

Permalink
Hover effect for close tab button
Browse files Browse the repository at this point in the history
  • Loading branch information
Scoutboy06 committed May 10, 2024
1 parent a323719 commit 9e48db7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/tabs/BoardTab.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { style } from "@vanilla-extract/css";

export const tab = style({
cursor: "unset",
paddingRight: 9,
marginRight: 5,
[vars.lightSelector]: {
backgroundColor: "transparent",
Expand Down Expand Up @@ -41,3 +42,12 @@ export const input = style({
outline: "none",
textAlign: "start",
});

export const closeTabBtn = style({
boxSizing: "content-box",
padding: "0.3rem",
transition: "background-color 100ms ease",
":hover": {
backgroundColor: "rgba(255, 255, 255, 0.1)",
},
});
1 change: 1 addition & 0 deletions src/components/tabs/BoardTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function BoardTab({
rightSection={
<ActionIcon
component="div"
className={classes.closeTabBtn}
onClick={(e) => {
closeTab(tab.value);
e.stopPropagation();
Expand Down

0 comments on commit 9e48db7

Please sign in to comment.