Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on items in mobile navigation bar (Inbox, Spaces and Profile) sometimes not being clicked #2350 #2375

Merged
merged 8 commits into from
Dec 5, 2023
9 changes: 0 additions & 9 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,6 @@ body {
}
}

/* Disable hover effects globally when using a touch device */
@media (hover: none) {
* {
:hover {
opacity: unset !important;
}
}
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
Expand Down
24 changes: 18 additions & 6 deletions src/shared/components/Tabs/Tab/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
border-bottom: 0.25rem solid var(--tab-bb-color);
cursor: pointer;
transition: color 0.2s, border-bottom-color 0.2s;
user-select: none;
-webkit-user-select: none;

&:active {
--tab-bb-color: var(--tab-inactive-hover-color);
--tab-color: var(--tab-inactive-hover-color);
}

&:hover {
--tab-color: var(--tab-inactive-hover-color);
}

&:first-child {
--tab-ml: 0;
}
Expand All @@ -48,8 +46,7 @@
--tab-bb-color: var(--secondary-text);
--tab-color: var(--secondary-text);

&:active,
&:hover {
&:active {
--tab-bb-color: var(--secondary-text);
--tab-color: var(--secondary-text);
}
Expand All @@ -62,3 +59,18 @@
align-items: center;
border: 0;
}

@media (hover: hover) and (pointer: fine) {
.custom-tab {
&:hover {
--tab-color: var(--tab-inactive-hover-color);
}
}

.custom-tab--active {
&:hover {
--tab-bb-color: var(--secondary-text);
--tab-color: var(--secondary-text);
}
}
}
Loading