Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
use focus-visible instead of focus in icon-button
Roman Pominov7a14cf84c148
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsxindex 5d5852868e..eb7d026726 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx@@ -73,12 +73,12 @@ const staticTreeProps = {const MenuButton = styled(IconButton, {color: "$hint",- "&:hover, &:focus": { color: "$hiContrast" },+ "&:hover, &:focus-visible": { color: "$hiContrast" },variants: {isParentSelected: {true: {color: "$loContrast",- "&:hover, &:focus": { color: "$slate7" },+ "&:hover, &:focus-visible": { color: "$slate7" },},},},diff --git a/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx b/apps/designer/app/designer/shared/fonts-manager/item-menu.tsxindex ffaa17542c..b89c47c709 100644--- a/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx+++ b/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx@@ -13,7 +13,7 @@ import { type FocusEventHandler, useState, useRef, useEffect } from "react";const MenuButton = styled(IconButton, {color: "$hint",- "&:hover, &:focus": {+ "&:hover, &:focus-visible": {color: "$hiContrast",},});diff --git a/packages/design-system/src/components/icon-button-with-menu.tsx b/packages/design-system/src/components/icon-button-with-menu.tsxindex 20aa86a166..417632ed07 100644--- a/packages/design-system/src/components/icon-button-with-menu.tsx+++ b/packages/design-system/src/components/icon-button-with-menu.tsx@@ -51,7 +51,7 @@ const iconButtonStyle = {height: "$spacing$11",color: "$colors$gray12",backgroundColor: "$colors$loContrast",- "&:focus": {+ "&:focus-visible": {outline: "none",boxShadow: "inset 0 0 0 1px $colors$blue9, 0 0 0 1px $colors$blue9",},@@ -60,10 +60,10 @@ const iconButtonStyle = {const iconButtonActiveStyle = {color: "$colors$blue11",backgroundColor: "$colors$blue4",- "&:hover,&:focus": {+ "&:hover,&:focus-visible": {backgroundColor: "$colors$blue4",},- "&:focus": {+ "&:focus-visible": {outline: "none",boxShadow: "inset 0 0 0 1px $colors$blue9, 0 0 0 1px $colors$blue9",},diff --git a/packages/design-system/src/components/icon-button.tsx b/packages/design-system/src/components/icon-button.tsxindex f2e61c0934..4944918bfb 100644--- a/packages/design-system/src/components/icon-button.tsx+++ b/packages/design-system/src/components/icon-button.tsx@@ -27,7 +27,7 @@ export const IconButton = styled("button", {backgroundColor: "$slate6",outline: "none",},- "&:focus": {+ "&:focus-visible": {backgroundColor: "$slate6",outline: "none",border: "2px solid white",@@ -45,7 +45,7 @@ export const IconButton = styled("button", {borderRadius: 2,height: "$spacing$9",width: "$spacing$9",- "&:hover, &:focus": {+ "&:hover, &:focus-visible": {background: "none",border: "none",},