diff --git a/CHANGELOG.md b/CHANGELOG.md index ab20723aca..d7fd7d64f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,63 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-beta.135](https://github.com/telekom/scale/compare/v3.0.0-beta.134...v3.0.0-beta.135) (2023-06-21) + + +### Bug Fixes + +* icon generation ([#2030](https://github.com/telekom/scale/issues/2030)) ([7f6b9ae](https://github.com/telekom/scale/commit/7f6b9ae0c97b20375309bd5ab86f966e7a6e93e0)) +* **list:** spacing ([#2005](https://github.com/telekom/scale/issues/2005)) ([b5a501d](https://github.com/telekom/scale/commit/b5a501d2d12609ab980dae7c47c87770f5010867)), closes [#2006](https://github.com/telekom/scale/issues/2006) [#2012](https://github.com/telekom/scale/issues/2012) +* accordion spacing and icon size ([#1936](https://github.com/telekom/scale/issues/1936)) ([bf3e60d](https://github.com/telekom/scale/commit/bf3e60d44669bac07d82e0ad2f676308362d4fa3)) +* checkbox group design alignment [#1998](https://github.com/telekom/scale/issues/1998)) ([ecbdcfa](https://github.com/telekom/scale/commit/ecbdcfabe352bb7b263b47cf5a312e7eecf84997)) +* design qa alignment ([#1932](https://github.com/telekom/scale/issues/1932)) ([8f1877c](https://github.com/telekom/scale/commit/8f1877cfdba51856cca926990ead3a8070a35b4d)) +* dropdown-select design qa ([#1995](https://github.com/telekom/scale/issues/1995)) ([87919c8](https://github.com/telekom/scale/commit/87919c8cd50587d13c494c8a80e4e1aca81d1a4a)) +* flyout design alignment ([#2001](https://github.com/telekom/scale/issues/2001)) ([0ed59c9](https://github.com/telekom/scale/commit/0ed59c949f18658a8c7a1eba9f4e506d43b8706e)) +* footer design alignment ([#1982](https://github.com/telekom/scale/issues/1982)) ([00157b3](https://github.com/telekom/scale/commit/00157b36a314fa0adc6633563e2aa141ab13ab07)) +* link design alignment ([#1972](https://github.com/telekom/scale/issues/1972)) ([24c1d7d](https://github.com/telekom/scale/commit/24c1d7d1a9e003ee6befe6bb2950b3a6c640d6df)) +* loading spinner design qa alignment ([#1934](https://github.com/telekom/scale/issues/1934)) ([3c98c26](https://github.com/telekom/scale/commit/3c98c26f2217a83094859fb3491b37bd00b071a4)) +* logo design alignment ([#1999](https://github.com/telekom/scale/issues/1999)) ([6201c9b](https://github.com/telekom/scale/commit/6201c9b7ee75ef065e0659cb6f336d91a562f446)) +* more visual alignments 💅 ([#1929](https://github.com/telekom/scale/issues/1929)) ([73415ba](https://github.com/telekom/scale/commit/73415bacf09b38aaf5b8adddb4ea7c93ed7f81f3)), closes [#1931](https://github.com/telekom/scale/issues/1931) [#1938](https://github.com/telekom/scale/issues/1938) +* some visual alignments 💅 ([#1884](https://github.com/telekom/scale/issues/1884)) ([8f668a8](https://github.com/telekom/scale/commit/8f668a8bf0a4d2b74c61dcb95f31249dbcb5be5a)), closes [#1886](https://github.com/telekom/scale/issues/1886) +* table icon design alignment ([#1996](https://github.com/telekom/scale/issues/1996)) ([a2f7ac6](https://github.com/telekom/scale/commit/a2f7ac6fba991f4a99edce634ca4457b0d47f46f)) +* **button:** secondary icon-only width ([#1994](https://github.com/telekom/scale/issues/1994)) ([a4e2704](https://github.com/telekom/scale/commit/a4e270498953cf7a9c2ecf6493785571b948276f)) +* **grid-cell:** resolve floating point precision issue ([#1839](https://github.com/telekom/scale/issues/1839)) ([68c69f6](https://github.com/telekom/scale/commit/68c69f67cee29faeb7d13e75bff9b95e70823976)) +* **loading-spinner:** center the loading icon in alignment with text ([#1809](https://github.com/telekom/scale/issues/1809)) ([797c7fd](https://github.com/telekom/scale/commit/797c7fde04875590bf01e33298e67435e76cc268)) +* **radio-button:** fix disabled radio button clickable issue ([#1822](https://github.com/telekom/scale/issues/1822)) ([10accc0](https://github.com/telekom/scale/commit/10accc091d9e035fbd2b858bc0ab01fc7f45ad5c)) +* **sidebar-nav:** active state colors ([#2007](https://github.com/telekom/scale/issues/2007)) ([6a32239](https://github.com/telekom/scale/commit/6a32239d9354f24899e64b93bd91294a0ab9d907)) +* logo design alignment (SCL-153) ([#1986](https://github.com/telekom/scale/issues/1986)) ([a10306e](https://github.com/telekom/scale/commit/a10306ef0f3660e1f3e92ebf5253d92ed2344284)) +* segmented button spacing ([#1928](https://github.com/telekom/scale/issues/1928)) ([9c6fbce](https://github.com/telekom/scale/commit/9c6fbce52c1343ea563b714cbb77fe1e2b917110)) +* sidebar-nav-items design alignment ([#1981](https://github.com/telekom/scale/issues/1981)) ([46eb920](https://github.com/telekom/scale/commit/46eb920f1bd54c21a5162ed8a252d9cb3f234996)) +* tab navigation design qa alignment ([#1942](https://github.com/telekom/scale/issues/1942)) ([40bf169](https://github.com/telekom/scale/commit/40bf1693d11d2e3cd96f635088d9fb5f5c2ddc94)) +* textarea design alignment ([#1925](https://github.com/telekom/scale/issues/1925)) ([4280147](https://github.com/telekom/scale/commit/42801476411b7fbc11854bc140b4e8b9b57dff1b)) +* **data-grid:** top padding for progress-bar status ([#1971](https://github.com/telekom/scale/issues/1971)) ([1071eb1](https://github.com/telekom/scale/commit/1071eb139f37ce27a931913c79ccf2df1acd2dcd)) +* **date-picker:** sync code and figma ([#1899](https://github.com/telekom/scale/issues/1899)) ([305a42a](https://github.com/telekom/scale/commit/305a42ad1b3d399b9d0e067fffdf2a8916998af4)), closes [#1910](https://github.com/telekom/scale/issues/1910) [#1911](https://github.com/telekom/scale/issues/1911) +* **icons:** polish after icon library update ([#1921](https://github.com/telekom/scale/issues/1921)) ([1652980](https://github.com/telekom/scale/commit/1652980a4d07be45cc90b818eb0852fb14d67111)), closes [#1922](https://github.com/telekom/scale/issues/1922) [#1923](https://github.com/telekom/scale/issues/1923) +* **telekom-footer-extended-navigation:** css fixes ([#1952](https://github.com/telekom/scale/issues/1952)) ([5e3c2ba](https://github.com/telekom/scale/commit/5e3c2baf540e9a0dc6a139ac3691d0ed2cdda51c)) +* **visual-test:** rating stars variant ([#1962](https://github.com/telekom/scale/issues/1962)) ([6e89551](https://github.com/telekom/scale/commit/6e89551e1aa946f0c51b3d0bc1ed70a57368e41a)), closes [#1964](https://github.com/telekom/scale/issues/1964) +* **visual-tests:** pagination buttons disabled ([#1855](https://github.com/telekom/scale/issues/1855)) ([d2068b9](https://github.com/telekom/scale/commit/d2068b9c94b5a148aaefe2d0ae5663bf5df3142a)) +* **visual-tests:** switch ([#1968](https://github.com/telekom/scale/issues/1968)) ([2a3ba70](https://github.com/telekom/scale/commit/2a3ba707d76a3f2fae7c25c89fe61f8b61a4308d)) +* removing unneeded firefox css ([#1876](https://github.com/telekom/scale/issues/1876)) ([d6def10](https://github.com/telekom/scale/commit/d6def10a1350ecdef3f1f138cad83e61756f5d32)) +* solving multi-line problems ([#1828](https://github.com/telekom/scale/issues/1828)) ([c3d4c23](https://github.com/telekom/scale/commit/c3d4c236b0f6ff0c9c6f488e63c3127f3cbd1efa)) +* visual alignments ([#1894](https://github.com/telekom/scale/issues/1894)) ([f1cd96b](https://github.com/telekom/scale/commit/f1cd96b3236288eb238e20900a57905c7f2c43e8)) + + +### Features + +* visual alignment, some more ([#2022](https://github.com/telekom/scale/issues/2022)) ([070df35](https://github.com/telekom/scale/commit/070df354a404a46e0cf2524ca23a08a1ce99f871)), closes [#2023](https://github.com/telekom/scale/issues/2023) [#2024](https://github.com/telekom/scale/issues/2024) [#2028](https://github.com/telekom/scale/issues/2028) +* **checkbox:** add required attribute ([#1851](https://github.com/telekom/scale/issues/1851)) ([5f90c75](https://github.com/telekom/scale/commit/5f90c75133d0ef60a77db76bd1ab7a6021a6833c)) +* **grid:** container with max-width only in 2xl ([#1993](https://github.com/telekom/scale/issues/1993)) ([2bc74b7](https://github.com/telekom/scale/commit/2bc74b762e1df02f4a08ea5035df2b4bf60681ae)) +* use sort indicator icons ([#2010](https://github.com/telekom/scale/issues/2010)) ([953c198](https://github.com/telekom/scale/commit/953c198b84398a09d0f006dc7d246da7160e7f36)), closes [#2011](https://github.com/telekom/scale/issues/2011) [#2013](https://github.com/telekom/scale/issues/2013) +* **chip:** better spacing ([#2008](https://github.com/telekom/scale/issues/2008)) ([e60a8aa](https://github.com/telekom/scale/commit/e60a8aa00fd0ebcf5eff64d09c61432bf40ca25f)), closes [#2009](https://github.com/telekom/scale/issues/2009) +* **slider:** add `platform` prop because browsers ([#1989](https://github.com/telekom/scale/issues/1989)) ([de6648a](https://github.com/telekom/scale/commit/de6648a3453f15652f9419e23a2ad2368dcce0b2)) +* adding accessibility title ([#1830](https://github.com/telekom/scale/issues/1830)) ([52b2023](https://github.com/telekom/scale/commit/52b20230bff98ccd152adf8c2e5f4b75386aec75)) +* more visual alignments ([#1984](https://github.com/telekom/scale/issues/1984)) ([3c7ecfd](https://github.com/telekom/scale/commit/3c7ecfd6c5449b560f86a8a764427e0dfc1be1be)), closes [#1985](https://github.com/telekom/scale/issues/1985) +* **notification:** banner, message and toast are now one single component ([#1180](https://github.com/telekom/scale/issues/1180)) ([89990af](https://github.com/telekom/scale/commit/89990af4003666f7b99d5439b48460d59b833158)) + + + + + # [3.0.0-beta.134](https://github.com/telekom/scale/compare/v3.0.0-beta.133...v3.0.0-beta.134) (2023-05-09) diff --git a/lerna.json b/lerna.json index 44801a9450..8601903fb1 100644 --- a/lerna.json +++ b/lerna.json @@ -7,7 +7,7 @@ "--pure-lockfile" ], "useWorkspaces": true, - "version": "3.0.0-beta.134", + "version": "3.0.0-beta.135", "command": { "version": { "allowBranch": "main" diff --git a/packages/components-angular/CHANGELOG.md b/packages/components-angular/CHANGELOG.md index 5247c9299b..66fa10da82 100644 --- a/packages/components-angular/CHANGELOG.md +++ b/packages/components-angular/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-beta.135](https://github.com/telekom/scale/compare/v3.0.0-beta.134...v3.0.0-beta.135) (2023-06-21) + +**Note:** Version bump only for package @telekom/scale-components-angular + + + + + # [3.0.0-beta.134](https://github.com/telekom/scale/compare/v3.0.0-beta.133...v3.0.0-beta.134) (2023-05-09) **Note:** Version bump only for package @telekom/scale-components-angular diff --git a/packages/components-angular/package.json b/packages/components-angular/package.json index 03f6b8223b..14f1d7666f 100644 --- a/packages/components-angular/package.json +++ b/packages/components-angular/package.json @@ -1,6 +1,6 @@ { "name": "@telekom/scale-components-angular", - "version": "3.0.0-beta.134", + "version": "3.0.0-beta.135", "description": "Angular specific wrapper for @telekom/scale-components", "license": "MPL-2.0", "homepage": "https://github.com/telekom/scale", diff --git a/packages/components-react/CHANGELOG.md b/packages/components-react/CHANGELOG.md index b39cafa39e..7076caeb67 100644 --- a/packages/components-react/CHANGELOG.md +++ b/packages/components-react/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-beta.135](https://github.com/telekom/scale/compare/v3.0.0-beta.134...v3.0.0-beta.135) (2023-06-21) + +**Note:** Version bump only for package @telekom/scale-components-react + + + + + # [3.0.0-beta.134](https://github.com/telekom/scale/compare/v3.0.0-beta.133...v3.0.0-beta.134) (2023-05-09) **Note:** Version bump only for package @telekom/scale-components-react diff --git a/packages/components-react/package.json b/packages/components-react/package.json index 097cf72677..8f4dbdeed1 100755 --- a/packages/components-react/package.json +++ b/packages/components-react/package.json @@ -1,7 +1,7 @@ { "name": "@telekom/scale-components-react", "sideEffects": false, - "version": "3.0.0-beta.134", + "version": "3.0.0-beta.135", "description": "React proxy for @telekom/scale-components", "license": "MPL-2.0", "homepage": "https://github.com/telekom/scale", diff --git a/packages/components-vue/CHANGELOG.md b/packages/components-vue/CHANGELOG.md index 28609f12d7..6080d36d90 100644 --- a/packages/components-vue/CHANGELOG.md +++ b/packages/components-vue/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-beta.135](https://github.com/telekom/scale/compare/v3.0.0-beta.134...v3.0.0-beta.135) (2023-06-21) + +**Note:** Version bump only for package @telekom/scale-components-vue + + + + + # [3.0.0-beta.134](https://github.com/telekom/scale/compare/v3.0.0-beta.133...v3.0.0-beta.134) (2023-05-09) **Note:** Version bump only for package @telekom/scale-components-vue diff --git a/packages/components-vue/package.json b/packages/components-vue/package.json index 6c1e139904..9eb558ae1f 100644 --- a/packages/components-vue/package.json +++ b/packages/components-vue/package.json @@ -1,7 +1,7 @@ { "name": "@telekom/scale-components-vue", "sideEffects": false, - "version": "3.0.0-beta.134", + "version": "3.0.0-beta.135", "description": "Vue specific wrapper for @telekom/scale-components", "license": "MPL-2.0", "homepage": "https://github.com/telekom/scale", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 11b5bdc3ec..9d6d8c4666 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -3,6 +3,59 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-beta.135](https://github.com/telekom/scale/compare/v3.0.0-beta.134...v3.0.0-beta.135) (2023-06-21) + + +### Bug Fixes + +* icon generation ([#2030](https://github.com/telekom/scale/issues/2030)) ([7f6b9ae](https://github.com/telekom/scale/commit/7f6b9ae0c97b20375309bd5ab86f966e7a6e93e0)) +* **list:** spacing ([#2005](https://github.com/telekom/scale/issues/2005)) ([b5a501d](https://github.com/telekom/scale/commit/b5a501d2d12609ab980dae7c47c87770f5010867)), closes [#2006](https://github.com/telekom/scale/issues/2006) [#2012](https://github.com/telekom/scale/issues/2012) +* checkbox group design alignment [#1998](https://github.com/telekom/scale/issues/1998)) ([ecbdcfa](https://github.com/telekom/scale/commit/ecbdcfabe352bb7b263b47cf5a312e7eecf84997)) +* design qa alignment ([#1932](https://github.com/telekom/scale/issues/1932)) ([8f1877c](https://github.com/telekom/scale/commit/8f1877cfdba51856cca926990ead3a8070a35b4d)) +* dropdown-select design qa ([#1995](https://github.com/telekom/scale/issues/1995)) ([87919c8](https://github.com/telekom/scale/commit/87919c8cd50587d13c494c8a80e4e1aca81d1a4a)) +* flyout design alignment ([#2001](https://github.com/telekom/scale/issues/2001)) ([0ed59c9](https://github.com/telekom/scale/commit/0ed59c949f18658a8c7a1eba9f4e506d43b8706e)) +* footer design alignment ([#1982](https://github.com/telekom/scale/issues/1982)) ([00157b3](https://github.com/telekom/scale/commit/00157b36a314fa0adc6633563e2aa141ab13ab07)) +* link design alignment ([#1972](https://github.com/telekom/scale/issues/1972)) ([24c1d7d](https://github.com/telekom/scale/commit/24c1d7d1a9e003ee6befe6bb2950b3a6c640d6df)) +* logo design alignment ([#1999](https://github.com/telekom/scale/issues/1999)) ([6201c9b](https://github.com/telekom/scale/commit/6201c9b7ee75ef065e0659cb6f336d91a562f446)) +* **button:** secondary icon-only width ([#1994](https://github.com/telekom/scale/issues/1994)) ([a4e2704](https://github.com/telekom/scale/commit/a4e270498953cf7a9c2ecf6493785571b948276f)) +* **date-picker:** sync code and figma ([#1899](https://github.com/telekom/scale/issues/1899)) ([305a42a](https://github.com/telekom/scale/commit/305a42ad1b3d399b9d0e067fffdf2a8916998af4)), closes [#1910](https://github.com/telekom/scale/issues/1910) [#1911](https://github.com/telekom/scale/issues/1911) +* **icons:** polish after icon library update ([#1921](https://github.com/telekom/scale/issues/1921)) ([1652980](https://github.com/telekom/scale/commit/1652980a4d07be45cc90b818eb0852fb14d67111)), closes [#1922](https://github.com/telekom/scale/issues/1922) [#1923](https://github.com/telekom/scale/issues/1923) +* **sidebar-nav:** active state colors ([#2007](https://github.com/telekom/scale/issues/2007)) ([6a32239](https://github.com/telekom/scale/commit/6a32239d9354f24899e64b93bd91294a0ab9d907)) +* accordion spacing and icon size ([#1936](https://github.com/telekom/scale/issues/1936)) ([bf3e60d](https://github.com/telekom/scale/commit/bf3e60d44669bac07d82e0ad2f676308362d4fa3)) +* loading spinner design qa alignment ([#1934](https://github.com/telekom/scale/issues/1934)) ([3c98c26](https://github.com/telekom/scale/commit/3c98c26f2217a83094859fb3491b37bd00b071a4)) +* logo design alignment (SCL-153) ([#1986](https://github.com/telekom/scale/issues/1986)) ([a10306e](https://github.com/telekom/scale/commit/a10306ef0f3660e1f3e92ebf5253d92ed2344284)) +* more visual alignments 💅 ([#1929](https://github.com/telekom/scale/issues/1929)) ([73415ba](https://github.com/telekom/scale/commit/73415bacf09b38aaf5b8adddb4ea7c93ed7f81f3)), closes [#1931](https://github.com/telekom/scale/issues/1931) [#1938](https://github.com/telekom/scale/issues/1938) +* removing unneeded firefox css ([#1876](https://github.com/telekom/scale/issues/1876)) ([d6def10](https://github.com/telekom/scale/commit/d6def10a1350ecdef3f1f138cad83e61756f5d32)) +* segmented button spacing ([#1928](https://github.com/telekom/scale/issues/1928)) ([9c6fbce](https://github.com/telekom/scale/commit/9c6fbce52c1343ea563b714cbb77fe1e2b917110)) +* sidebar-nav-items design alignment ([#1981](https://github.com/telekom/scale/issues/1981)) ([46eb920](https://github.com/telekom/scale/commit/46eb920f1bd54c21a5162ed8a252d9cb3f234996)) +* solving multi-line problems ([#1828](https://github.com/telekom/scale/issues/1828)) ([c3d4c23](https://github.com/telekom/scale/commit/c3d4c236b0f6ff0c9c6f488e63c3127f3cbd1efa)) +* tab navigation design qa alignment ([#1942](https://github.com/telekom/scale/issues/1942)) ([40bf169](https://github.com/telekom/scale/commit/40bf1693d11d2e3cd96f635088d9fb5f5c2ddc94)) +* textarea design alignment ([#1925](https://github.com/telekom/scale/issues/1925)) ([4280147](https://github.com/telekom/scale/commit/42801476411b7fbc11854bc140b4e8b9b57dff1b)) +* **data-grid:** top padding for progress-bar status ([#1971](https://github.com/telekom/scale/issues/1971)) ([1071eb1](https://github.com/telekom/scale/commit/1071eb139f37ce27a931913c79ccf2df1acd2dcd)) +* **grid-cell:** resolve floating point precision issue ([#1839](https://github.com/telekom/scale/issues/1839)) ([68c69f6](https://github.com/telekom/scale/commit/68c69f67cee29faeb7d13e75bff9b95e70823976)) +* **loading-spinner:** center the loading icon in alignment with text ([#1809](https://github.com/telekom/scale/issues/1809)) ([797c7fd](https://github.com/telekom/scale/commit/797c7fde04875590bf01e33298e67435e76cc268)) +* **radio-button:** fix disabled radio button clickable issue ([#1822](https://github.com/telekom/scale/issues/1822)) ([10accc0](https://github.com/telekom/scale/commit/10accc091d9e035fbd2b858bc0ab01fc7f45ad5c)) +* **telekom-footer-extended-navigation:** css fixes ([#1952](https://github.com/telekom/scale/issues/1952)) ([5e3c2ba](https://github.com/telekom/scale/commit/5e3c2baf540e9a0dc6a139ac3691d0ed2cdda51c)) +* some visual alignments 💅 ([#1884](https://github.com/telekom/scale/issues/1884)) ([8f668a8](https://github.com/telekom/scale/commit/8f668a8bf0a4d2b74c61dcb95f31249dbcb5be5a)), closes [#1886](https://github.com/telekom/scale/issues/1886) +* visual alignments ([#1894](https://github.com/telekom/scale/issues/1894)) ([f1cd96b](https://github.com/telekom/scale/commit/f1cd96b3236288eb238e20900a57905c7f2c43e8)) + + +### Features + +* visual alignment, some more ([#2022](https://github.com/telekom/scale/issues/2022)) ([070df35](https://github.com/telekom/scale/commit/070df354a404a46e0cf2524ca23a08a1ce99f871)), closes [#2023](https://github.com/telekom/scale/issues/2023) [#2024](https://github.com/telekom/scale/issues/2024) [#2028](https://github.com/telekom/scale/issues/2028) +* **checkbox:** add required attribute ([#1851](https://github.com/telekom/scale/issues/1851)) ([5f90c75](https://github.com/telekom/scale/commit/5f90c75133d0ef60a77db76bd1ab7a6021a6833c)) +* **grid:** container with max-width only in 2xl ([#1993](https://github.com/telekom/scale/issues/1993)) ([2bc74b7](https://github.com/telekom/scale/commit/2bc74b762e1df02f4a08ea5035df2b4bf60681ae)) +* use sort indicator icons ([#2010](https://github.com/telekom/scale/issues/2010)) ([953c198](https://github.com/telekom/scale/commit/953c198b84398a09d0f006dc7d246da7160e7f36)), closes [#2011](https://github.com/telekom/scale/issues/2011) [#2013](https://github.com/telekom/scale/issues/2013) +* **chip:** better spacing ([#2008](https://github.com/telekom/scale/issues/2008)) ([e60a8aa](https://github.com/telekom/scale/commit/e60a8aa00fd0ebcf5eff64d09c61432bf40ca25f)), closes [#2009](https://github.com/telekom/scale/issues/2009) +* **slider:** add `platform` prop because browsers ([#1989](https://github.com/telekom/scale/issues/1989)) ([de6648a](https://github.com/telekom/scale/commit/de6648a3453f15652f9419e23a2ad2368dcce0b2)) +* adding accessibility title ([#1830](https://github.com/telekom/scale/issues/1830)) ([52b2023](https://github.com/telekom/scale/commit/52b20230bff98ccd152adf8c2e5f4b75386aec75)) +* more visual alignments ([#1984](https://github.com/telekom/scale/issues/1984)) ([3c7ecfd](https://github.com/telekom/scale/commit/3c7ecfd6c5449b560f86a8a764427e0dfc1be1be)), closes [#1985](https://github.com/telekom/scale/issues/1985) +* **notification:** banner, message and toast are now one single component ([#1180](https://github.com/telekom/scale/issues/1180)) ([89990af](https://github.com/telekom/scale/commit/89990af4003666f7b99d5439b48460d59b833158)) + + + + + # [3.0.0-beta.134](https://github.com/telekom/scale/compare/v3.0.0-beta.133...v3.0.0-beta.134) (2023-05-09) diff --git a/packages/components/package.json b/packages/components/package.json index 1b71d89d08..6a5b6cba43 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@telekom/scale-components", - "version": "3.0.0-beta.134", + "version": "3.0.0-beta.135", "description": "Scale is the digital design system for Telekom products and experiences.", "homepage": "https://github.com/telekom/scale", "repository": { @@ -34,6 +34,7 @@ "lint:fix": "yarn lint:style --fix", "lint": "tslint -c tslint.json -p . \"src/**/*.{tsx,ts,css,json}\" \"!src/**/*.d.ts\"", "generate": "node ./scripts/generate-icons.js", + "optimize-icons": "svgo -r -f src/telekom/icons", "process-angular-proxies": "node ./scripts/process-angular-proxies.js" }, "devDependencies": { @@ -55,7 +56,7 @@ "file-loader": "^6.0.0", "fs-extra": "^9.0.1", "handlebars": "^4.7.6", - "hast-util-to-html": "^7.1.1", + "hast-util-to-html": "^8.0.4", "jsx-dom": "^6.4.17", "lodash": "^4.17.15", "postcss-custom-media": "^9.0.1", @@ -70,8 +71,8 @@ "@duetds/date-picker": "1.2.0", "@floating-ui/dom": "^0.5.4", "@stencil/core": "^2.17.0", - "@telekom/design-tokens": "^1.0.0-beta.4", - "@telekom/scale-design-tokens": "^3.0.0-beta.134", + "@telekom/design-tokens": "^1.0.0-beta.7", + "@telekom/scale-design-tokens": "^3.0.0-beta.135", "classnames": "^2.2.6", "stencil-inline-svg": "^1.0.1" } diff --git a/packages/components/scripts/generate-icons.js b/packages/components/scripts/generate-icons.js index 11b14884b2..474d439207 100644 --- a/packages/components/scripts/generate-icons.js +++ b/packages/components/scripts/generate-icons.js @@ -28,7 +28,7 @@ const { const Handlebars = require('handlebars'); // using Handlebars for consistency with components-sketch const { parse } = require('svg-parser'); -const toHTML = require('hast-util-to-html'); +// const toHTML = require('hast-util-to-html'); const svgo = new SVGO({ plugins: [{ removeViewBox: false }, { removeXMLNS: true }], @@ -45,6 +45,8 @@ const EXT = '.svg'; main(); async function main() { + const { toHtml } = await import('hast-util-to-html'); + /* Get SVG data from source files */ const entries = await fg(INPUT_GLOB); @@ -61,9 +63,9 @@ async function main() { .dirname(filepath) .replace(INPUT_GLOB.replace('**/*.svg', ''), ''); const pathParts = cleanPath.split('/'); - const key = cleanPath.replace(/\//gi, '-'); - const category = pathParts[0]; - const name = pathParts[pathParts.length - 1]; + const key = nolo(cleanPath.replace(/\//gi, '-')); + const category = nolo(pathParts[0]); + const name = nolo(pathParts[pathParts.length - 1]); return { ...item, @@ -76,6 +78,11 @@ async function main() { }) ); + /* Replace low dashes with normal dashes */ + function nolo(str) { + return str.replace(/_/g, '-'); + } + /* Parse, define names and markup */ const groupedByState = groupBy(files, 'key'); @@ -97,13 +104,20 @@ async function main() { tagName, className, markup: { - default: toHTML(adaptTree(parse(defaultItem.data))), - selected: toHTML(adaptTree(parse(selectedItem.data))), + default: JSXify(toHtml(adaptTree(parse(defaultItem.data)))), + selected: JSXify(toHtml(adaptTree(parse(selectedItem.data)))), }, viewBox: getViewBox(parse(defaultItem.data)), }; }); + function JSXify(html) { + if (html.indexOf('xlink:href')) { + return html.replace(/xlink:href/g, 'xlinkHref'); + } + return html; + } + /* Generate an "index" JSON file */ const groupedByCategory = groupBy(files, 'category'); diff --git a/packages/components/src/components/breadcrumb/breadcrumb.css b/packages/components/src/components/breadcrumb/breadcrumb.css index 946b6b1a94..a3c6da2649 100644 --- a/packages/components/src/components/breadcrumb/breadcrumb.css +++ b/packages/components/src/components/breadcrumb/breadcrumb.css @@ -14,7 +14,7 @@ --font-size-list-item: var(--telekom-typography-font-size-caption); - --color-separator: var(--telekom-color-ui-regular); + --color-separator: var(--telekom-color-text-and-icon-additional); --spacing-y-item: var(--telekom-spacing-unit-x1); --spacing-x-item: var(--telekom-spacing-unit-x2); @@ -26,6 +26,7 @@ --focus-outline: var(--telekom-line-weight-highlight) solid var(--telekom-color-functional-focus-standard); + --font-current: var(--telekom-text-style-caption-bold); --color-current: var(--telekom-color-text-and-icon-standard); } @@ -76,5 +77,6 @@ } .breadcrumb__current { + font: var(--font-current); color: var(--color-current); } diff --git a/packages/components/src/components/button/button.css b/packages/components/src/components/button/button.css index 471e97201b..7c40cdc6f1 100644 --- a/packages/components/src/components/button/button.css +++ b/packages/components/src/components/button/button.css @@ -76,7 +76,7 @@ --radius-ghost: var(--radius); --border-width-ghost: var(--telekom-spacing-unit-x025); --spacing-x-ghost: var(--telekom-spacing-unit-x2); - --color-ghost: var(--telekom-color-text-and-icon-standard); + --color-ghost: var(--telekom-color-text-and-icon-primary-standard); --color-ghost-hover: var(--telekom-color-text-and-icon-primary-hovered); --color-ghost-active: var(--telekom-color-text-and-icon-primary-pressed); --color-ghost-disabled: var(--telekom-color-text-and-icon-disabled); @@ -127,7 +127,9 @@ .button.button--icon-before:not(.button--icon-only) ::slotted(*) { margin-right: var(--spacing-icon-x); - margin-left: calc(var(--spacing-icon-x) * -1); + margin-left: calc(var(--spacing-icon-x-small) * -1); + margin-top: var(--spacing-icon-x); + margin-bottom: var(--spacing-icon-x); } .button.button--icon-before:not(.button--icon-only).button--size-small @@ -138,7 +140,9 @@ .button.button--icon-after:not(.button--icon-only) ::slotted(*) { margin-left: var(--spacing-icon-x); - margin-right: calc(var(--spacing-icon-x) * -1); + margin-right: calc(var(--spacing-icon-x-small) * -1); + margin-top: var(--spacing-icon-x); + margin-bottom: var(--spacing-icon-x); } .button.button--icon-after:not(.button--icon-only).button--size-small @@ -165,12 +169,20 @@ padding-left: var(--spacing-x-icon-only); padding-right: var(--spacing-x-icon-only); } +.button--icon-only.button--variant-secondary { + padding-left: calc(var(--spacing-x-icon-only) - 1px); + padding-right: calc(var(--spacing-x-icon-only) - 1px); +} .button--icon-only.button--size-small { padding-left: var(--spacing-x-icon-only-small); padding-right: var(--spacing-x-icon-only-small); min-width: 32px; } +.button--icon-only.button--size-small.button--variant-secondary { + padding-left: calc(var(--spacing-x-icon-only-small) - 1px); + padding-right: calc(var(--spacing-x-icon-only-small) - 1px); +} .button--disabled { cursor: not-allowed; diff --git a/packages/components/src/components/button/button.tsx b/packages/components/src/components/button/button.tsx index b2b600d345..385941a44e 100644 --- a/packages/components/src/components/button/button.tsx +++ b/packages/components/src/components/button/button.tsx @@ -24,7 +24,7 @@ import { hasShadowDom, ScaleIcon, isScaleIcon } from '../../utils/utils'; const DEFAULT_ICON_SIZE = 24; const buttonIconSizeMap = { small: 16, - large: 24, + large: 20, }; @Component({ @@ -180,7 +180,7 @@ export class Button { ); icons.forEach((icon) => { if (icon.size === DEFAULT_ICON_SIZE) { - icon.size = buttonIconSizeMap['small']; + icon.size = buttonIconSizeMap[this.size]; } }); } diff --git a/packages/components/src/components/button/readme.md b/packages/components/src/components/button/readme.md index d849080424..cf55878d1d 100644 --- a/packages/components/src/components/button/readme.md +++ b/packages/components/src/components/button/readme.md @@ -44,12 +44,14 @@ Type: `Promise` - [app-navigation-user-menu](../telekom/app-navigation-user-menu) - [scale-data-grid](../data-grid) + - [scale-notification](../notification) ### Graph ```mermaid graph TD; app-navigation-user-menu --> scale-button scale-data-grid --> scale-button + scale-notification --> scale-button style scale-button fill:#f9f,stroke:#333,stroke-width:4px ``` diff --git a/packages/components/src/components/callout/callout.css b/packages/components/src/components/callout/callout.css index 42710fca81..421b088c09 100644 --- a/packages/components/src/components/callout/callout.css +++ b/packages/components/src/components/callout/callout.css @@ -2,12 +2,12 @@ --position: absolute; --background: var(--telekom-color-ui-extra-strong); --color: var(--telekom-color-text-and-icon-inverted-standard); - --spacing: var(--telekom-spacing-unit-x6); + --spacing: var(--telekom-spacing-unit-x8); --min-width: 6rem; - --aspect-ratio: 1; + --aspect-ratio: 1 / 1; --rotation: 0deg; - --font-standard: var(--telekom-text-style-lead-text); --font-small: var(--telekom-text-style-body-bold); + --font-medium: var(--telekom-text-style-body-bold); --font-large: var(--telekom-text-style-heading-1); box-sizing: border-box; @@ -29,9 +29,7 @@ [part='base'] { box-sizing: border-box; padding: var(--spacing); - font: var(--font-standard); - font-weight: var(--telekom-typography-font-weight-bold); - line-height: var(--telekom-typography-line-spacing-tight); + font: var(--font-medium); } /* Color variants */ @@ -52,7 +50,7 @@ } :host([variant='blue']) { - --background: var(--telekom-color-additional-cyan-400); + --background: var(--telekom-color-additional-cyan-100); --color: var(--telekom-color-text-and-icon-black-standard); } diff --git a/packages/components/src/components/callout/callout.tsx b/packages/components/src/components/callout/callout.tsx index a07b22c7c6..5e73257cee 100644 --- a/packages/components/src/components/callout/callout.tsx +++ b/packages/components/src/components/callout/callout.tsx @@ -17,9 +17,6 @@ const numToPx = (val: string) => (Number.isNaN(Number(val)) ? val : val + 'px'); export class Callout { @Element() hostElement: HTMLElement; - baseEl: HTMLElement; - mo: MutationObserver; - /** (optional) Color variant of the callout */ @Prop() variant?: 'primary' | 'blue' | 'white' | 'black' | string; /** (optional) Degree of rotation */ @@ -40,27 +37,6 @@ export class Callout { this.syncPropsToCSS(); } - componentDidLoad() { - const observer = new MutationObserver(() => { - this.adjustSize(); - }); - observer.observe(this.hostElement, { - attributes: false, - childList: true, - subtree: true, - characterData: true, - }); - this.mo = observer; - // Wait for full styles before measuring - window.requestAnimationFrame(this.adjustSize); - } - - disconnectedCallback() { - if (this.mo) { - this.mo.disconnect(); - } - } - @Watch('rotation') @Watch('top') @Watch('right') @@ -70,15 +46,6 @@ export class Callout { this.syncPropsToCSS(); } - /** - * `aspect-ratio` is not enough when dealing with text :( - */ - adjustSize = () => { - const { width, height } = this.baseEl.getBoundingClientRect(); - const largest = Math.max(width, height); - this.hostElement.style.setProperty('--min-width', `${largest}px`); - }; - syncPropsToCSS() { this.hostElement.style.setProperty('--rotation', `${this.rotation}deg`); @@ -101,7 +68,7 @@ export class Callout { return ( {this.styles && } -
(this.baseEl = el)}> +
diff --git a/packages/components/src/components/card/card.css b/packages/components/src/components/card/card.css index 85873232e0..64931fb000 100644 --- a/packages/components/src/components/card/card.css +++ b/packages/components/src/components/card/card.css @@ -24,6 +24,8 @@ --spacing-body-slotted: 0; --spacing-body-slotted-interactive: 0; + + --font-body-slotted: var(--telekom-text-style-body); } .card-border { @@ -72,3 +74,7 @@ .card--interactive .card__body ::slotted(*) { margin: var(--spacing-body-slotted-interactive); } + +.card__body ::slotted(*) { + font: var(--font-body-slotted); +} diff --git a/packages/components/src/components/checkbox-group/readme.md b/packages/components/src/components/checkbox-group/readme.md index a727f80d8f..17d3c8fbd2 100644 --- a/packages/components/src/components/checkbox-group/readme.md +++ b/packages/components/src/components/checkbox-group/readme.md @@ -40,8 +40,8 @@ ```mermaid graph TD; scale-checkbox-group --> scale-checkbox - scale-checkbox --> scale-icon-action-indeterminate - scale-checkbox --> scale-icon-action-success + scale-checkbox --> scale-icon-action-minus + scale-checkbox --> scale-icon-action-checkmark scale-checkbox --> scale-icon-alert-information scale-checkbox --> scale-icon-alert-error style scale-checkbox-group fill:#f9f,stroke:#333,stroke-width:4px diff --git a/packages/components/src/components/checkbox/checkbox.css b/packages/components/src/components/checkbox/checkbox.css index f5f7d4e331..a44531d420 100644 --- a/packages/components/src/components/checkbox/checkbox.css +++ b/packages/components/src/components/checkbox/checkbox.css @@ -63,7 +63,6 @@ scale-checkbox { position: relative; display: flex; width: fit-content; - padding: 0 2px 0 2px; flex-direction: column; color: var(--color-text); } diff --git a/packages/components/src/components/checkbox/checkbox.tsx b/packages/components/src/components/checkbox/checkbox.tsx index a40974366c..b5f25b1e52 100644 --- a/packages/components/src/components/checkbox/checkbox.tsx +++ b/packages/components/src/components/checkbox/checkbox.tsx @@ -63,6 +63,8 @@ export class Checkbox { @Prop({ mutable: true }) inputId?: string; /** (optional) Injected CSS styles */ @Prop() styles?: string; + /** (optional) Input required */ + @Prop() required?: boolean; /** Emitted when the value has changed. */ @Event({ eventName: 'scale-change' }) scaleChange: EventEmitter; @@ -116,19 +118,19 @@ export class Checkbox { renderIcon() { if (this.indeterminate) { return ( - + > ); } if (this.checked) { return ( - + > ); } } @@ -189,6 +191,7 @@ export class Checkbox { aria-invalid={this.status === 'error' || this.invalid} aria-describedBy={helperText.id} disabled={this.disabled} + required={this.required} onChange={this.handleChange} />
diff --git a/packages/components/src/components/date-picker/readme.md b/packages/components/src/components/date-picker/readme.md index 8e0c80e642..8b3077a06f 100644 --- a/packages/components/src/components/date-picker/readme.md +++ b/packages/components/src/components/date-picker/readme.md @@ -7,28 +7,29 @@ ## Properties -| Property | Attribute | Description | Type | Default | -| ---------------- | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | --------------- | -| `dateAdapter` | `date-adapter` | Date adapter, for custom parsing/formatting. Must be object with a `parse` function which accepts a `string` and returns a `Date`, and a `format` function which accepts a `Date` and returns a `string`. Default is IS0-8601 parsing and formatting. | `any` | `undefined` | -| `direction` | `direction` | Forces the opening direction of the calendar modal to be always left or right. This setting can be useful when the input is smaller than the opening date picker would be as by default the picker always opens towards right. | `"left" \| "right"` | `'right'` | -| `disabled` | `disabled` | Makes the date picker input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies. | `boolean` | `false` | -| `firstDayOfWeek` | `first-day-of-week` | Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc. Default is Monday. | `any` | `undefined` | -| `helperText` | `helper-text` | (optional) Helper text | `string` | `''` | -| `identifier` | `identifier` | Adds a unique identifier for the date picker input. Use this instead of html `id` attribute. | `string` | `undefined` | -| `innerRole` | `inner-role` | Defines a specific role attribute for the date picker input. | `string` | `undefined` | -| `invalid` | `invalid` | (optional) invalid status | `boolean` | `undefined` | -| `label` | `label` | (optional) Label | `string` | `''` | -| `localization` | -- | Button labels, day names, month names, etc, used for localization. Default is English. | `DuetLocalizedText & { today: string; }` | `undefined` | -| `max` | `max` | Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. This setting can be used alone or together with the min property. | `string` | `''` | -| `min` | `min` | Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. This setting can be used alone or together with the max property. | `string` | `''` | -| `name` | `name` | Name of the date picker input. | `string` | `'date'` | -| `placeholder` | `placeholder` | (optional) Input place holder | `string` | `''` | -| `popupTitle` | `popup-title` | **[DEPRECATED]** in v3 in favor of localization.calendarHeading

| `string` | `'Pick a date'` | -| `required` | `required` | Should the input be marked as required? | `boolean` | `false` | -| `size` | `size` | **[DEPRECATED]**

| `string` | `undefined` | -| `status` | `status` | **[DEPRECATED]** - invalid should replace status

| `string` | `''` | -| `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` | -| `value` | `value` | Date value. Must be in IS0-8601 format: YYYY-MM-DD. | `string` | `''` | +| Property | Attribute | Description | Type | Default | +| ---------------- | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ----------------- | +| `dateAdapter` | `date-adapter` | Date adapter, for custom parsing/formatting. Must be object with a `parse` function which accepts a `string` and returns a `Date`, and a `format` function which accepts a `Date` and returns a `string`. Default is IS0-8601 parsing and formatting. | `any` | `undefined` | +| `direction` | `direction` | Forces the opening direction of the calendar modal to be always left or right. This setting can be useful when the input is smaller than the opening date picker would be as by default the picker always opens towards right. | `"left" \| "right"` | `'right'` | +| `disabled` | `disabled` | Makes the date picker input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies. | `boolean` | `false` | +| `firstDayOfWeek` | `first-day-of-week` | Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc. Default is Monday. | `any` | `undefined` | +| `helperText` | `helper-text` | (optional) Helper text | `string` | `''` | +| `identifier` | `identifier` | Adds a unique identifier for the date picker input. Use this instead of html `id` attribute. | `string` | `undefined` | +| `innerRole` | `inner-role` | Defines a specific role attribute for the date picker input. | `string` | `undefined` | +| `invalid` | `invalid` | (optional) invalid status | `boolean` | `undefined` | +| `label` | `label` | (optional) Label | `string` | `''` | +| `localization` | -- | Button labels, day names, month names, etc, used for localization. Default is English. | `DuetLocalizedText & { today: string; }` | `undefined` | +| `max` | `max` | Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. This setting can be used alone or together with the min property. | `string` | `''` | +| `min` | `min` | Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. This setting can be used alone or together with the max property. | `string` | `''` | +| `name` | `name` | Name of the date picker input. | `string` | `'date'` | +| `placeholder` | `placeholder` | (optional) Input place holder | `string` | `''` | +| `popupTitle` | `popup-title` | **[DEPRECATED]** in v3 in favor of localization.calendarHeading

| `string` | `'Pick a date'` | +| `required` | `required` | Should the input be marked as required? | `boolean` | `false` | +| `size` | `size` | **[DEPRECATED]**

| `string` | `undefined` | +| `status` | `status` | **[DEPRECATED]** - invalid should replace status

| `string` | `''` | +| `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` | +| `value` | `value` | Date value. Must be in IS0-8601 format: YYYY-MM-DD. | `string` | `''` | +| `variant` | `variant` | | `"danger" \| "informational" \| "success" \| "warning"` | `'informational'` | ## Events @@ -86,6 +87,7 @@ Type: `Promise` - [scale-icon-navigation-right](../icons/navigation-right) - [scale-icon-navigation-collapse-down](../icons/navigation-collapse-down) - duet-date-picker +- [scale-helper-text](../helper-text) ### Graph ```mermaid @@ -95,6 +97,10 @@ graph TD; scale-date-picker --> scale-icon-navigation-right scale-date-picker --> scale-icon-navigation-collapse-down scale-date-picker --> duet-date-picker + scale-date-picker --> scale-helper-text + scale-helper-text --> scale-icon-alert-information + scale-helper-text --> scale-icon-alert-error + scale-helper-text --> scale-icon-action-success style scale-date-picker fill:#f9f,stroke:#333,stroke-width:4px ``` diff --git a/packages/components/src/components/dropdown-select-item/dropdown-select-item.css b/packages/components/src/components/dropdown-select-item/dropdown-select-item.css index 3e294cc83e..494ea6284d 100644 --- a/packages/components/src/components/dropdown-select-item/dropdown-select-item.css +++ b/packages/components/src/components/dropdown-select-item/dropdown-select-item.css @@ -12,5 +12,9 @@ [part~='prefix'], [part~='label'], [part~='suffix'] { - display: flex; + display: inline-block; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + line-height: 1; } diff --git a/packages/components/src/components/dropdown-select-item/readme.md b/packages/components/src/components/dropdown-select-item/readme.md index 5d7df5df00..c67a191923 100644 --- a/packages/components/src/components/dropdown-select-item/readme.md +++ b/packages/components/src/components/dropdown-select-item/readme.md @@ -24,6 +24,19 @@ | `"suffix"` | | +## Dependencies + +### Used by + + - [scale-data-grid](../data-grid) + +### Graph +```mermaid +graph TD; + scale-data-grid --> scale-dropdown-select-item + style scale-dropdown-select-item fill:#f9f,stroke:#333,stroke-width:4px +``` + ---------------------------------------------- *Built with [StencilJS](https://stenciljs.com/)* diff --git a/packages/components/src/components/dropdown-select/dropdown-select.css b/packages/components/src/components/dropdown-select/dropdown-select.css index 5eaa3e860e..72f8724713 100644 --- a/packages/components/src/components/dropdown-select/dropdown-select.css +++ b/packages/components/src/components/dropdown-select/dropdown-select.css @@ -22,17 +22,20 @@ /*combobox*/ --transition-combobox: var(--transition); - --font-size-combobox: var(--telekom-typography-font-size-body); --background-combobox: var(--telekom-color-ui-state-fill-standard); - --spacing-combobox: 18px var(--telekom-spacing-unit-x10) 5px - calc(var(--spacing-x) - 1px); + /* + 18px 32px 4px 12px + (subtracting 1px from border) + */ + --spacing-combobox: 1.125rem calc(2rem - var(--telekom-spacing-unit-x025)) + 0.25rem calc(0.75rem - var(--telekom-spacing-unit-x025)); /*meta*/ --spacing-y-meta: var(--telekom-spacing-unit-x1); --color-meta: var(--telekom-color-text-and-icon-standard); /*icon*/ - --height-icon: var(--telekom-spacing-unit-x6); + --height-icon: 20px; --color-icon: var(--telekom-color-text-and-icon-standard); --color-icon-hover: var(--telekom-color-text-and-icon-standard); --color-icon-active: var(--telekom-color-text-and-icon-standard); @@ -42,20 +45,10 @@ --color-label: var(--telekom-color-text-and-icon-additional); --z-index-label: var(--scl-z-index-10); --transition-label: var(--transition); - --font-size-label: var(--telekom-typography-font-size-body); - --font-weight-label: var(--telekom-typography-font-weight-medium); - --font-size-label-focus: var(--telekom-typography-font-size-small); - --font-weight-label-focus: var(--telekom-typography-font-weight-bold); - --margin-top-label-focus: -1.5px; - --line-height-label: var(--telekom-typography-font-size-body); - --line-height-label-animated: var(--telekom-typography-font-size-small); - --transform-label: translate( - var(--spacing-x), - calc((var(--telekom-spacing-unit-x11) - var(--font-size-label)) / 2) - ); + --transform-label: translate(var(--spacing-x), 0.875rem); --transform-label-animated: translate( var(--spacing-x), - var(--telekom-spacing-unit-x2) + calc(0.25rem + var(--telekom-spacing-unit-x025)) ); /*listbox*/ @@ -64,9 +57,6 @@ 0 4px 16px 0 rgba(0, 0, 0, 0.1); --max-height-listbox: 300px; --z-index-listbox: 99; - - /*option */ - --outline-color-option: var(--telekom-color-functional-focus-standard); } /*combobox-container*/ @@ -93,10 +83,10 @@ z-index: 1; box-sizing: border-box; transition: var(--transition-combobox); - font-family: inherit; - font-size: var(--font-size-combobox); + font: var(--telekom-text-style-body); border-radius: var(--radius); border: var(--border); + box-sizing: border-box; white-space: nowrap; text-overflow: ellipsis; appearance: none; @@ -153,6 +143,15 @@ background: var(--background-disabled); } +/*combobox value*/ +[part='combobox_value'] { + width: calc(100%); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: inline-block; +} + /*meta*/ [part='meta'] { display: flex; @@ -179,26 +178,25 @@ /*label*/ [part='label'] { + width: calc(100% - 44px); /* 12px + 32px (x padding) */ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; top: 0; left: 0; color: var(--color-label); - display: flex; + display: inline-block; z-index: var(--z-index-label); position: absolute; transition: var(--transition-label); pointer-events: none; - font-size: var(--font-size-label); + font: var(--telekom-text-style-ui); transform: var(--transform-label); - font-weight: var(--font-weight-label); - line-height: var(--line-height-label); } [part~='animated'] [part='label'] { - margin-top: var(--margin-top-label-focus); + font: var(--telekom-text-style-small-bold); transform: var(--transform-label-animated); - font-size: var(--font-size-label-focus); - font-weight: var(--font-weight-label-focus); - line-height: var(--line-height-label-animated); } [part~='disabled'] [part='label'] { @@ -208,6 +206,15 @@ background: var(--background-disabled); } +/* hidden label */ +[part~='hide-label'] [part='combobox'] { + padding-top: 0.3125rem; +} + +[part~='hide-label'] [part='label'] { + visibility: hidden; +} + /*listbox*/ [part='listbox'] { position: relative; @@ -223,7 +230,7 @@ box-shadow: var(--box-shadow-listbox); border-radius: var(--radius); padding: var(--radius) 0; - margin-top: var(--telekom-line-weight-highlight); + margin-top: var(--telekom-spacing-unit-x1); left: 0; position: absolute; top: 100%; @@ -236,6 +243,10 @@ display: block; } +[part~='strategy-fixed'] [part='listbox-pad'] { + position: fixed; +} + [part~='transparent'] [part='listbox'] { background-color: transparent; } @@ -250,8 +261,9 @@ } [part~='option'][part~='current'] { - outline: 3px solid var(--outline-color-option); - outline-offset: -3px; + outline: var(--focus-outline); + outline-offset: -2px; + border-radius: var(--radius); } [part~='option'][aria-selected='true'] { @@ -259,14 +271,14 @@ position: relative; } -[part~='option'][aria-selected='true'] scale-icon-action-success { +[part~='option'][aria-selected='true'] scale-icon-action-checkmark { position: absolute; - right: 16px; - top: 12px; + right: var(--telekom-spacing-unit-x3); + top: var(--telekom-spacing-unit-x3); } [part~='option'] scale-dropdown-select-item::part(base) { - padding: 12px; + padding: var(--telekom-spacing-unit-x3); } /*helper-text*/ diff --git a/packages/components/src/components/dropdown-select/dropdown-select.tsx b/packages/components/src/components/dropdown-select/dropdown-select.tsx index c3898dbefa..f7ccc3468a 100644 --- a/packages/components/src/components/dropdown-select/dropdown-select.tsx +++ b/packages/components/src/components/dropdown-select/dropdown-select.tsx @@ -29,6 +29,8 @@ enum Actions { Type = 'Type', } +const DEFAULT_ICON_SIZE = 20; + const isElementValue = (x: unknown): x is Element & { value: string } => typeof (x as { value: unknown }).value === 'string'; const readValue = (element: Element) => @@ -198,6 +200,10 @@ export class DropdownSelect { @Prop() variant?: 'informational' | 'warning' | 'danger' | 'success' = 'informational'; @Prop({ mutable: true, reflect: true }) value: any; + /** @see {@url https://floating-ui.com/docs/computePosition#strategy} */ + @Prop() floatingStrategy: 'absolute' | 'fixed' = 'absolute'; + /** (optional) to hide the label */ + @Prop() hideLabelVisually?: boolean = false; @Event({ eventName: 'scale-change' }) scaleChange!: EventEmitter; @Event({ eventName: 'scale-focus' }) scaleFocus!: EventEmitter; @@ -234,8 +240,14 @@ export class DropdownSelect { if (!this.open) { return; } + if (this.floatingStrategy === 'fixed') { + this.listboxPadEl.style.width = `${ + this.comboEl.getBoundingClientRect().width + }px`; + } computePosition(this.comboEl, this.listboxPadEl, { placement: 'bottom', + strategy: this.floatingStrategy, }).then(({ x, y }) => { Object.assign(this.listboxPadEl.style, { left: `${x}px`, @@ -422,7 +434,7 @@ export class DropdownSelect { {...(this.helperText ? ariaDescribedByAttr : {})} {...(this.invalid ? { 'aria-invalid': 'true' } : {})} > - {ValueElement} + {ValueElement}
(this.listboxPadEl = el)}>
@@ -454,9 +466,9 @@ export class DropdownSelect { > {ItemElement} {value === this.value ? ( - + > ) : null}
) @@ -467,9 +479,15 @@ export class DropdownSelect {
{this.open ? ( - + ) : ( - + )}
@@ -497,7 +515,9 @@ export class DropdownSelect { this.invalid && `invalid`, this.currentIndex > -1 && `steal-focus`, animated && 'animated', - this.helperText && 'has-helper-text' + this.helperText && 'has-helper-text', + this.floatingStrategy && `strategy-${this.floatingStrategy}`, + this.hideLabelVisually && 'hide-label' ); } } diff --git a/packages/components/src/components/dropdown-select/readme.md b/packages/components/src/components/dropdown-select/readme.md index f1a0d926f1..bd257e15dc 100644 --- a/packages/components/src/components/dropdown-select/readme.md +++ b/packages/components/src/components/dropdown-select/readme.md @@ -7,18 +7,20 @@ ## Properties -| Property | Attribute | Description | Type | Default | -| ------------- | ------------- | ----------- | ------------------------------------------------------- | ----------------- | -| `comboboxId` | `combobox-id` | | `string` | `'combobox'` | -| `disabled` | `disabled` | | `boolean` | `undefined` | -| `helperText` | `helper-text` | | `string` | `''` | -| `invalid` | `invalid` | | `boolean` | `false` | -| `label` | `label` | | `string` | `undefined` | -| `name` | `name` | | `string` | `undefined` | -| `readonly` | `readonly` | | `boolean` | `undefined` | -| `transparent` | `transparent` | | `boolean` | `undefined` | -| `value` | `value` | | `any` | `undefined` | -| `variant` | `variant` | | `"danger" \| "informational" \| "success" \| "warning"` | `'informational'` | +| Property | Attribute | Description | Type | Default | +| ------------------- | --------------------- | ---------------------------- | ------------------------------------------------------- | ----------------- | +| `comboboxId` | `combobox-id` | | `string` | `'combobox'` | +| `disabled` | `disabled` | | `boolean` | `undefined` | +| `floatingStrategy` | `floating-strategy` | | `"absolute" \| "fixed"` | `'absolute'` | +| `helperText` | `helper-text` | | `string` | `''` | +| `hideLabelVisually` | `hide-label-visually` | (optional) to hide the label | `boolean` | `false` | +| `invalid` | `invalid` | | `boolean` | `false` | +| `label` | `label` | | `string` | `undefined` | +| `name` | `name` | | `string` | `undefined` | +| `readonly` | `readonly` | | `boolean` | `undefined` | +| `transparent` | `transparent` | | `boolean` | `undefined` | +| `value` | `value` | | `any` | `undefined` | +| `variant` | `variant` | | `"danger" \| "informational" \| "success" \| "warning"` | `'informational'` | ## Events @@ -36,6 +38,7 @@ | Part | Description | | ---------------------------- | ----------- | | `"combobox-container"` | | +| `"combobox-value"` | | | `"icon"` | | | `"label"` | | | `"listbox"` | | @@ -45,9 +48,13 @@ ## Dependencies +### Used by + + - [scale-data-grid](../data-grid) + ### Depends on -- [scale-icon-action-success](../icons/action-success) +- [scale-icon-action-checkmark](../icons/action-checkmark) - [scale-icon-navigation-collapse-up](../icons/navigation-collapse-up) - [scale-icon-navigation-collapse-down](../icons/navigation-collapse-down) - [scale-helper-text](../helper-text) @@ -55,13 +62,14 @@ ### Graph ```mermaid graph TD; - scale-dropdown-select --> scale-icon-action-success + scale-dropdown-select --> scale-icon-action-checkmark scale-dropdown-select --> scale-icon-navigation-collapse-up scale-dropdown-select --> scale-icon-navigation-collapse-down scale-dropdown-select --> scale-helper-text scale-helper-text --> scale-icon-alert-information scale-helper-text --> scale-icon-alert-error - scale-helper-text --> scale-icon-alert-success + scale-helper-text --> scale-icon-action-success + scale-data-grid --> scale-dropdown-select style scale-dropdown-select fill:#f9f,stroke:#333,stroke-width:4px ``` diff --git a/packages/components/src/components/dropdown/dropdown.css b/packages/components/src/components/dropdown/dropdown.css index 38b565d8a9..809f86347d 100644 --- a/packages/components/src/components/dropdown/dropdown.css +++ b/packages/components/src/components/dropdown/dropdown.css @@ -46,7 +46,7 @@ scale-dropdown { --color-meta: var(--telekom-color-text-and-icon-standard); /*icon*/ - --height-icon: var(--telekom-spacing-unit-x6); + --height-icon: var(--telekom-spacing-unit-x5); --color-icon: var(--telekom-color-text-and-icon-standard); --color-icon-hover: var(--telekom-color-text-and-icon-standard); --color-icon-active: var(--telekom-color-text-and-icon-standard); @@ -97,12 +97,6 @@ scale-dropdown { visibility: hidden; } -@-moz-document url-prefix() { - .dropdown .input__dropdown { - text-indent: -2px; - } -} - .dropdown .input__dropdown-wrapper { position: relative; } diff --git a/packages/components/src/components/dropdown/dropdown.tsx b/packages/components/src/components/dropdown/dropdown.tsx index 0dafa2f4ac..c9c2dfcbda 100644 --- a/packages/components/src/components/dropdown/dropdown.tsx +++ b/packages/components/src/components/dropdown/dropdown.tsx @@ -276,7 +276,7 @@ export class Dropdown { {this.hasSlotIcon ? ( ) : ( - + )} diff --git a/packages/components/src/components/dropdown/readme.md b/packages/components/src/components/dropdown/readme.md index 2197fde969..2daa67e513 100644 --- a/packages/components/src/components/dropdown/readme.md +++ b/packages/components/src/components/dropdown/readme.md @@ -46,10 +46,6 @@ ## Dependencies -### Used by - - - [scale-data-grid](../data-grid) - ### Depends on - [scale-icon-navigation-collapse-down](../icons/navigation-collapse-down) @@ -62,8 +58,7 @@ graph TD; scale-dropdown --> scale-helper-text scale-helper-text --> scale-icon-alert-information scale-helper-text --> scale-icon-alert-error - scale-helper-text --> scale-icon-alert-success - scale-data-grid --> scale-dropdown + scale-helper-text --> scale-icon-action-success style scale-dropdown fill:#f9f,stroke:#333,stroke-width:4px ``` diff --git a/packages/components/src/components/helper-text/__snapshots__/helper-text.spec.ts.snap b/packages/components/src/components/helper-text/__snapshots__/helper-text.spec.ts.snap index 5427eb7e54..d140196cd7 100644 --- a/packages/components/src/components/helper-text/__snapshots__/helper-text.spec.ts.snap +++ b/packages/components/src/components/helper-text/__snapshots__/helper-text.spec.ts.snap @@ -62,7 +62,7 @@ exports[`Helper Text should render success text with success icon if success var - + success diff --git a/packages/components/src/components/helper-text/helper-text.tsx b/packages/components/src/components/helper-text/helper-text.tsx index cb3c69c574..f16f73e66c 100644 --- a/packages/components/src/components/helper-text/helper-text.tsx +++ b/packages/components/src/components/helper-text/helper-text.tsx @@ -46,7 +46,7 @@ export class HelperText { return ; } if (variant === 'success') { - return ; + return ; } } diff --git a/packages/components/src/components/helper-text/readme.md b/packages/components/src/components/helper-text/readme.md index 1c3ccd0186..86df00bbc2 100644 --- a/packages/components/src/components/helper-text/readme.md +++ b/packages/components/src/components/helper-text/readme.md @@ -36,27 +36,31 @@ ### Used by + - [scale-date-picker](../date-picker) - [scale-dropdown](../dropdown) - [scale-dropdown-select](../dropdown-select) - [scale-segmented-button](../segmented-button) - [scale-text-field](../text-field) + - [scale-textarea](../textarea) ### Depends on - [scale-icon-alert-information](../icons/alert-information) - [scale-icon-alert-error](../icons/alert-error) -- [scale-icon-alert-success](../icons/alert-success) +- [scale-icon-action-success](../icons/action-success) ### Graph ```mermaid graph TD; scale-helper-text --> scale-icon-alert-information scale-helper-text --> scale-icon-alert-error - scale-helper-text --> scale-icon-alert-success + scale-helper-text --> scale-icon-action-success + scale-date-picker --> scale-helper-text scale-dropdown --> scale-helper-text scale-dropdown-select --> scale-helper-text scale-segmented-button --> scale-helper-text scale-text-field --> scale-helper-text + scale-textarea --> scale-helper-text style scale-helper-text fill:#f9f,stroke:#333,stroke-width:4px ``` diff --git a/packages/components/src/components/link/link.css b/packages/components/src/components/link/link.css index 17922fc69e..747f1cdd60 100644 --- a/packages/components/src/components/link/link.css +++ b/packages/components/src/components/link/link.css @@ -16,7 +16,7 @@ */ :host { - --font-weight: var(--telekom-typography-font-weight-medium); + --font-weight: ; --spacing-x-icon: var(--telekom-spacing-unit-x1); --line-offset: 0.0625em; @@ -30,54 +30,33 @@ --line-thickness-visited: var(--line-thickness-initial); /* hover */ --color-hover: var(--telekom-color-text-and-icon-link-hovered); - --color-line-hover: var(--telekom-color-functional-interaction-hovered); - --line-thickness-hover: var(--line-thickness-initial); + --color-line-hover: currentColor; + --line-thickness-hover: var(--telekom-line-weight-highlight); /* focus */ + --color-focus-outline: var(--telekom-color-functional-focus-standard); --color-focus: var(--telekom-color-text-and-icon-link-standard); - --color-line-focus: var(--telekom-color-text-and-icon-link-standard); - --line-thickness-focus: var(--telekom-line-weight-bold); + --color-line-focus: transparent; + --line-thickness-focus: 0; /* active */ --color-active: var(--telekom-color-text-and-icon-link-active); - --color-line-active: var(--telekom-color-functional-interaction-pressed); - --line-thickness-active: var(--line-thickness-initial); + --color-line-active: currentColor; + --line-thickness-active: var(--telekom-line-weight-highlight); /* disabled */ --color-disabled: var(--telekom-color-text-and-icon-disabled); - --color-line-disabled: var(--telekom-color-ui-border-disabled); + --color-line-disabled: transparent; --line-thickness-disabled: var(--line-thickness-initial); } -/* Quick fix for inaccessible link color when placed inside a scale-tooltip */ -:host-context(scale-tooltip) { - /* initial */ - --color: currentColor; - --color-line-initial: currentColor; - /* visited */ - --color-visited: currentColor; - --color-line-visited: currentColor; - /* hover */ - --color-hover: currentColor; - --color-line-hover: currentColor; - /* focus */ - --color-focus: currentColor; - --color-line-focus: currentColor; - /* active */ - --color-active: currentColor; - --color-line-active: currentColor; -} - :host { display: inline; margin-bottom: calc(var(--line-offset) + var(--line-thickness-initial)); - --anchor-color: var(--color); - --line-color: var(--color); - --line-thickness: var(--line-thickness-initial); } [part='anchor'] { cursor: pointer; outline: none; font-weight: var(--font-weight); - color: var(--anchor-color); + color: var(--color); position: relative; display: inline-flex; text-decoration: underline; @@ -89,7 +68,6 @@ ); /*FIXME:TOKEN color decoration should have 0.75 opacity*/ text-decoration-color: var(--line-color); - transition: text-decoration var(--telekom-motion-duration-transition); } [part='anchor'] { @@ -123,35 +101,58 @@ slot[name='icon']::slotted(*) { --line-color: transparent; } +:host(.no-underline) [part='anchor'] { + text-decoration: none; +} + [part='anchor']:hover, [part='anchor']:focus, -[part='anchor']:active { - transition: text-decoration var(--telekom-motion-duration-transition); +[part='anchor']:active, +:host(.no-underline) [part='anchor']:hover, +:host(.no-underline) [part='anchor']:active { text-decoration: underline; } -[part='anchor']:visited { - --anchor-color: var(--color-visited); - --line-color: var(--color-line-visited); - --line-thickness: var(--line-thickness-visited); +[part='anchor']:hover, +:host(.no-underline) [part='anchor']:hover { + color: var(--color-hover); + text-decoration-color: var(--color-line-hover); + text-decoration-thickness: var( + --line-thickness-hover, + var(--line-thickness-initial) + ); } -[part='anchor']:hover { - --anchor-color: var(--color-hover); - --line-color: var(--color-line-hover); - --line-thickness: var(--line-thickness-hover); +[part='anchor']:focus, +[part='anchor']:focus-visible { + color: var(--color-focus); + text-decoration-color: var(--color-line-focus); + text-decoration-thickness: var( + --line-thickness-focus, + var(--line-thickness-initial) + ); + outline: var(--telekom-line-weight-highlight) solid var(--color-focus-outline); + outline-offset: var(--telekom-spacing-unit-x025); + border-radius: var(--telekom-radius-small); } -[part='anchor']:focus { - --anchor-color: var(--color-focus); - --line-color: var(--color-line-focus); - --line-thickness: var(--line-thickness-focus); +[part='anchor']:active, +:host(.no-underline) [part='anchor']:active { + color: var(--color-active); + text-decoration-color: var(--color-line-active); + text-decoration-thickness: var( + --line-thickness-active, + var(--line-thickness-initial) + ); } -[part='anchor']:active { - --anchor-color: var(--color-active); - --line-color: var(--color-line-active); - --line-thickness: var(--line-thickness-active); +[part='anchor']:visited { + color: var(--color-visited); + text-decoration-color: var(--color-line-visited); + text-decoration-thickness: var( + --line-thickness-visited, + var(--line-thickness-initial) + ); } /* disabled */ @@ -164,9 +165,8 @@ slot[name='icon']::slotted(*) { :host(.disabled) [part='anchor']:visited, :host(.disabled) [part='anchor']:hover, :host(.disabled) [part='anchor']:active { - --anchor-color: var(--color-disabled); - --line-color: var(--color-line-disabled); - + color: var(--color-disabled); + text-decoration: none; cursor: not-allowed; pointer-events: none; } diff --git a/packages/components/src/components/list-item/list-item.css b/packages/components/src/components/list-item/list-item.css index 031cc9cf9b..7cb38a5d3a 100644 --- a/packages/components/src/components/list-item/list-item.css +++ b/packages/components/src/components/list-item/list-item.css @@ -13,11 +13,11 @@ --display: block; --font-size: var(--telekom-typography-font-size-body); --line-height: var(--telekom-typography-line-spacing-standard); - --spacing-left: calc(0.25ch + var(--telekom-spacing-unit-x4)); + --spacing-left: calc(0.5ch + var(--telekom-spacing-unit-x5)); + --spacing-left-nested: calc(0.5ch + var(--telekom-spacing-unit-x4)); - --font-size-marker-ordered: var(--telekom-typography-font-size-body); - --font-weight-marker-ordered: var(--telekom-typography-font-weight-bold); - --font-size-marker-ordered-nested: var(--telekom-typography-font-size-small); + --font-marker-ordered: var(--telekom-text-style-body); + --font-marker-ordered-nested: var(--telekom-text-style-small-bold); --line-height-marker-ordered-nested: var( --telekom-typography-line-spacing-standard ); @@ -26,7 +26,6 @@ ); --spacing-right-no-marker: var(--telekom-spacing-unit-x2); - display: var(--display); } @@ -35,13 +34,18 @@ font-size: var(--font-size); line-height: var(--line-height); padding-left: var(--spacing-left); + margin-top: var(--telekom-spacing-unit-x1); +} + +.list-item--nested { + padding-left: var(--spacing-left-nested); } .list-item:before { content: ''; - position: absolute; top: 0; left: 0; + position: absolute; } .list-item--unordered:before { @@ -63,12 +67,13 @@ .list-item--ordered:before { content: attr(data-index) '.'; - font-size: var(--font-size-marker-ordered); - font-weight: var(--font-weight-marker-ordered); + font: var(--font-marker-ordered); + font-variant-numeric: tabular-nums; } .list-item--nested.list-item--ordered:before { - font-size: var(--font-size-marker-ordered-nested); + font: var(--telekom-text-style-small-bold); + font-variant-numeric: tabular-nums; line-height: var(--line-height-marker-ordered-nested); padding-top: var(--spacing-top-marker-ordered-nested); } diff --git a/packages/components/src/components/loading-spinner/__snapshots__/loading-spinner.spec.ts.snap b/packages/components/src/components/loading-spinner/__snapshots__/loading-spinner.spec.ts.snap index 0444b83a68..80613eedb3 100644 --- a/packages/components/src/components/loading-spinner/__snapshots__/loading-spinner.spec.ts.snap +++ b/packages/components/src/components/loading-spinner/__snapshots__/loading-spinner.spec.ts.snap @@ -6,10 +6,10 @@ exports[`LoadingSpinner should match snapshot 1`] = `
diff --git a/packages/components/src/components/loading-spinner/loading-spinner.css b/packages/components/src/components/loading-spinner/loading-spinner.css index 76153eecbb..f2a6794672 100644 --- a/packages/components/src/components/loading-spinner/loading-spinner.css +++ b/packages/components/src/components/loading-spinner/loading-spinner.css @@ -1,15 +1,14 @@ :host { display: inline-flex; - --size-outer-small: 28px; - --size-outer-large: 56px; - --size-inner-small: 28px; - --size-inner-large: 56px; + --size-outer-small: 24px; + --size-outer-large: 48px; + --size-inner-small: 24px; + --size-inner-large: 48px; --line-height-size-small: 24px; --line-height-size-large: 48px; - --font-weight: var(--telekom-typography-font-weight-bold); - --font-size: var(--telekom-typography-font-size-body); + --font: var(--telekom-text-style-ui-bold); --color-circle-primary: var(--telekom-color-primary-standard); --color-circle-primary-inner: var(--telekom-color-ui-subtle); @@ -17,6 +16,9 @@ --color-circle-white: var(--telekom-color-ui-base); --color-circle-white-inner: var(--telekom-color-ui-regular); --color-text-white: var(--telekom-color-text-and-icon-white-standard); + + --spacing-vertical: var(--telekom-spacing-unit-x3); + --spacing-horizontal: var(--telekom-spacing-unit-x4); } .sr-only { @@ -35,8 +37,7 @@ } .spinner .spinner__text { - font-weight: var(--font-weight); - font-size: var(--font-size); + font: var(--telekom-text-style-ui-bold); color: var(--color-text-primary); } @@ -47,46 +48,40 @@ .spinner.spinner--alignment-horizontal .spinner__text { display: flex; align-self: center; - margin-left: var(--spacing); - margin-top: 3px; + margin-left: var(--spacing-horizontal); } .spinner.spinner--alignment-horizontal.spinner--size-small .spinner__text { line-height: var(--line-height-size-small); - padding-left: 12px; } .spinner.spinner--alignment-horizontal.spinner--size-large .spinner__text { line-height: var(--line-height-size-large); - margin-top: 5px; - padding-left: 12px; } .spinner.spinner--alignment-vertical .spinner__text { - margin-top: var(--spacing); + margin-top: var(--spacing-vertical); } .spinner.spinner--alignment-vertical.spinner--size-small .spinner__container { - height: 28px; - width: 28px; - padding-bottom: 4px; + height: var(--size-inner-small); + width: var(--size-inner-small); } .spinner.spinner--alignment-vertical.spinner--size-large .spinner__container { - height: 56px; - width: 56px; - padding-bottom: 4px; + height: var(--size-outer-large); + width: var(--size-outer-large); } .spinner.spinner--alignment-horizontal.spinner--size-small .spinner__container { - height: 28px; - width: 28px; + height: var(--size-inner-small); + width: var(--size-inner-small); text-align: left; } .spinner.spinner--alignment-horizontal.spinner--size-large .spinner__container { - height: 56px; - width: 56px; + height: var(--size-outer-large); + width: var(--size-outer-large); text-align: left; } diff --git a/packages/components/src/components/loading-spinner/loading-spinner.tsx b/packages/components/src/components/loading-spinner/loading-spinner.tsx index bcaf9cbc71..8029e546f0 100644 --- a/packages/components/src/components/loading-spinner/loading-spinner.tsx +++ b/packages/components/src/components/loading-spinner/loading-spinner.tsx @@ -13,6 +13,7 @@ export class LoadingSpinner { @Prop() variant: 'white' | 'primary' = 'primary'; @Prop() alignment: 'horizontal' | 'vertical' = 'horizontal'; @Prop() text: string; + @Prop() accessibilityTitle: string; @Prop() size: 'small' | 'large' = 'small'; componentWillLoad() { @@ -29,7 +30,7 @@ export class LoadingSpinner { class="path" cx="25" cy="25" - r="20" + r="22.5" fill="none" stroke-width="4" > @@ -43,14 +44,16 @@ export class LoadingSpinner { class="path" cx="25" cy="25" - r="20" + r="22.5" fill="none" stroke-width="4" >
- {this.text || 'Loading'} + {this.accessibilityTitle + ? this.accessibilityTitle + : this.text || 'Loading'}
{this.text ? (