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
Drop link preset states (#1604)
Bogdan Chadkin2afa5e1cd4ef
diff --git a/packages/css-data/src/html.ts b/packages/css-data/src/html.tsindex 4a864e5b26..58497c9db6 100644--- a/packages/css-data/src/html.ts+++ b/packages/css-data/src/html.ts@@ -447,6 +447,12 @@ export const a: Styles = [property: "cursor",value: { type: "keyword", value: "pointer" },},+ {+ property: "color",+ value: { type: "rgb", r: 0, g: 0, b: 238, alpha: 1 },+ },+ // active and visited states are not defined as usually overriden with stateless color+ // and modeling var-like defaults is too complex];/* lists */diff --git a/packages/react-sdk/src/css/normalize.ts b/packages/react-sdk/src/css/normalize.tsindex 3caaeefb46..8dce2ac7ce 100644--- a/packages/react-sdk/src/css/normalize.ts+++ b/packages/react-sdk/src/css/normalize.ts@@ -16,7 +16,7 @@*/// webstudio custom opinionated presets-import { borders, linkColors } from "./presets";+import { borders } from "./presets";import type { EmbedTemplateStyleDecl } from "../embed-template";export type Styles = EmbedTemplateStyleDecl[];@@ -63,7 +63,7 @@ export const i = baseStyle;export const img = baseStyle;-export const a = [boxSizing, ...borders, ...linkColors];+export const a = baseStyle;export const li = baseStyle;export const ul = baseStyle;export const ol = baseStyle;diff --git a/packages/react-sdk/src/css/presets.ts b/packages/react-sdk/src/css/presets.tsindex c43d8e64f9..4658a7a843 100644--- a/packages/react-sdk/src/css/presets.ts+++ b/packages/react-sdk/src/css/presets.ts@@ -18,21 +18,3 @@ export const borders: Styles = [value: { type: "unit", value: 1, unit: "px" },},];--export const linkColors: Styles = [- {- property: "color",- value: { type: "rgb", r: 0, g: 0, b: 238, alpha: 1 },- },- {- state: ":active",- property: "color",- // chrome and safari use rgb(255, 0, 0)- value: { type: "rgb", r: 238, g: 0, b: 0, alpha: 1 },- },- {- state: ":visited",- property: "color",- value: { type: "rgb", r: 85, g: 26, b: 139, alpha: 1 },- },-];