From 5fe0b22f574b54f316bf6a9f4e408cf642d83e79 Mon Sep 17 00:00:00 2001 From: Miki Date: Fri, 25 Aug 2023 11:34:10 -0700 Subject: [PATCH] Remove `calc` usage from SchemaItem styles (#990) Signed-off-by: Miki --- CHANGELOG.md | 1 + src/components/schema/_schema_item.scss | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71375db1f8..c69e84356d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ ### 🐛 Bug Fixes - Fix blurry text in breadcrumbs by avoiding skewing text ([#959](https://github.com/opensearch-project/oui/pull/959)) +- Remove `calc` usage from SchemaItem styles ([#990](https://github.com/opensearch-project/oui/pull/990)) ### 🚞 Infrastructure diff --git a/src/components/schema/_schema_item.scss b/src/components/schema/_schema_item.scss index 17fb07e134..474458cebf 100644 --- a/src/components/schema/_schema_item.scss +++ b/src/components/schema/_schema_item.scss @@ -29,12 +29,12 @@ .ouiSchemaItem__icon { align-self: flex-start; - margin: calc($ouiSize / 2) 0; // To align with buttonIcon + margin: ($ouiSize / 2) 0; // To align with buttonIcon } .ouiSchemaItem__label { flex: 1; - margin: calc($ouiSize / 2) 0; // To align with buttonIcon + margin: ($ouiSize / 2) 0; // To align with buttonIcon } .ouiSchemaItem__actions { @@ -68,12 +68,12 @@ font-size: $ouiFontSizeXS; .ouiSchemaItem__icon { - margin: calc($ouiSizeM / 2) 0; + margin: ($ouiSizeM / 2) 0; margin-left: $ouiSizeXS; } .ouiSchemaItem__label { flex: 1; - margin: calc($ouiSizeM / 2) 0; + margin: ($ouiSizeM / 2) 0; } }