diff --git a/packages/main/src/components/NumericSideIndicator/NumericSideIndicator.module.css b/packages/main/src/components/NumericSideIndicator/NumericSideIndicator.module.css index d034ae13260..82398c0785d 100644 --- a/packages/main/src/components/NumericSideIndicator/NumericSideIndicator.module.css +++ b/packages/main/src/components/NumericSideIndicator/NumericSideIndicator.module.css @@ -1,4 +1,7 @@ .numericSideIndicator { + font-family: var(--sapFontFamily); + font-size: var(--sapFontSmallSize); + color: var(--sapTile_TextColor); display: flex; flex-direction: column; align-items: flex-end; @@ -7,9 +10,6 @@ } .title { - font-family: var(--sapFontFamily); - font-size: var(--sapFontSmallSize); - color: var(--sapTile_TextColor); text-align: end; text-overflow: ellipsis; overflow: hidden; @@ -17,14 +17,9 @@ max-width: 100%; } -.valueContainer { - position: relative; -} - -.number, -.unit { - font-size: var(--sapFontSmallSize); - color: var(--sapTile_TitleTextColor); +.value { + font-size: inherit; + color: inherit; white-space: pre-line; word-wrap: break-word; word-break: break-word; @@ -32,36 +27,16 @@ .stateGood { color: var(--sapPositiveTextColor); - - .number, - .unit { - color: var(--sapPositiveTextColor); - } } .stateError { color: var(--sapNegativeTextColor); - - .number, - .unit { - color: var(--sapNegativeTextColor); - } } .stateCritical { color: var(--sapCriticalTextColor); - - .number, - .unit { - color: var(--sapCriticalTextColor); - } } .stateNeutral { color: var(--sapNeutralTextColor); - - .number, - .unit { - color: var(--sapNeutralTextColor); - } } diff --git a/packages/main/src/components/NumericSideIndicator/index.tsx b/packages/main/src/components/NumericSideIndicator/index.tsx index 545cb722a6c..f4988bc7f0b 100644 --- a/packages/main/src/components/NumericSideIndicator/index.tsx +++ b/packages/main/src/components/NumericSideIndicator/index.tsx @@ -40,10 +40,10 @@ export const NumericSideIndicator = forwardRef {titleText} -
- {number} - {unit} -
+ + {number} + {unit} + ); });