From e348eb0ee6a9881be4610cf53715f8bada8e36f4 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Fri, 25 Jan 2019 12:49:31 +0200 Subject: [PATCH] Revert breaking change to --lumo-border-radius (#61) --- demo/styles.html | 2 +- style.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/styles.html b/demo/styles.html index 39e37ff..d12da7e 100644 --- a/demo/styles.html +++ b/demo/styles.html @@ -206,7 +206,7 @@
Border radius
The most commonly used roundness. It’s recommended to keep the value between 0em and calc(var(--lumo-size-m) / 2)
--lumo-border-radius-l
Use for large containers, such as cards and dialogs. It’s recommended to keep the value between 0em and 0.5em
-
--lumo-border-radius: var(--lumo-border-radius-m)
+
--lumo-border-radius
Deprecated. Use --lumo-border-radius-m instead.
diff --git a/style.html b/style.html index 019c1d0..49a432e 100644 --- a/style.html +++ b/style.html @@ -6,9 +6,9 @@ html { /* Border radius */ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */ - --lumo-border-radius-m: 0.25em; /* Button, text field, menu overlay, etc */ + --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */ - --lumo-border-radius: var(--lumo-border-radius-m); /* Backwards compatibility */ + --lumo-border-radius: 0.25em; /* Deprecated */ /* Shadow */ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);