Skip to content

Commit

Permalink
Remove calc usage from SchemaItem styles
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <miki@amazon.com>
  • Loading branch information
AMoo-Miki committed Aug 24, 2023
1 parent 309e146 commit 450f767
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/components/schema/_schema_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 450f767

Please sign in to comment.