Skip to content

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.

fix icon button outline and border

Oleg Isonen02b6942975ae
diff --git a/apps/designer/app/designer/shared/fonts-manager/list.tsx b/apps/designer/app/designer/shared/fonts-manager/list.tsx
index 897caf6ff6..d1d1a8375e 100644
--- a/apps/designer/app/designer/shared/fonts-manager/list.tsx
+++ b/apps/designer/app/designer/shared/fonts-manager/list.tsx
@@ -26,16 +26,14 @@ const ListboxItemBase = styled("li", {
px: "$1",
listStyle: "none",
borderRadius: "$1",
- "&[data-highlighted], &[aria-selected=true]": {
+ outline: 0,
+ "&:focus-within, &[data-highlighted], &[aria-selected=true]": {
boxShadow: "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
...getItemMenuVars("visible"),
},
"&[disabled]": {
pointerEvents: "none",
},
- "&:focus-within": {
- boxShadow: "none",
- },
});
export const ListboxItem = forwardRef<
diff --git a/packages/design-system/src/components/icon-button.tsx b/packages/design-system/src/components/icon-button.tsx
index 347f1316df..e1169ad5ec 100644
--- a/packages/design-system/src/components/icon-button.tsx
+++ b/packages/design-system/src/components/icon-button.tsx
@@ -47,6 +47,7 @@ export const IconButton = styled("button", {
width: "$3",
"&:hover, &:focus": {
background: "none",
+ borderColor: "transparent",
},
},
"2": {