diff --git a/packages/main/src/Label.js b/packages/main/src/Label.js index e7fd69ed6c41..5e999858fb01 100644 --- a/packages/main/src/Label.js +++ b/packages/main/src/Label.js @@ -47,7 +47,7 @@ const metadata = { }, /** - * Defines whether semi-colon is added to the component text. + * Defines whether colon is added to the component text. *

* Note: Usually used in forms. * @type {boolean} diff --git a/packages/main/src/themes/Label.css b/packages/main/src/themes/Label.css index 3c8811c12b91..70d4843c9042 100644 --- a/packages/main/src/themes/Label.css +++ b/packages/main/src/themes/Label.css @@ -23,12 +23,11 @@ :host(:not([wrapping-type="Normal"])) .ui5-label-root { display: inline-block; white-space: nowrap; - overflow: hidden; } bdi { content: ""; - padding-right: 0.15625rem; + padding-right: 0.075rem; /*1.2px - fix for last letter clipping issue when style is italic*/ } :host(:not([wrapping-type="Normal"])) .ui5-label-text-wrapper { @@ -53,7 +52,11 @@ bdi { } :host(:not([wrapping-type="Normal"])[show-colon]) .ui5-label-text-wrapper { - max-width: calc(100% - .2rem); + max-width: calc(100% - 0.125rem); +} + +:host([show-colon]) .ui5-label-required-colon { + margin-left: -0.05rem; /*0.8px - fix for last letter clipping issue when style is italic*/ } :host([show-colon]) .ui5-label-required-colon:before { diff --git a/packages/main/test/pages/Label.html b/packages/main/test/pages/Label.html index 474f8ae14fc9..edacda217a6b 100644 --- a/packages/main/test/pages/Label.html +++ b/packages/main/test/pages/Label.html @@ -8,7 +8,6 @@ Label -