diff --git a/CHANGELOG.md b/CHANGELOG.md index c9d3d79f35..1f96d1b343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ 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.155](https://github.com/amir-ba/scale/compare/v3.0.0-beta.154...v3.0.0-beta.155) (2024-11-26) + + +### Bug Fixes + +* **drop-down:** fixes hidden input in dropdown-select with null check ([#2361](https://github.com/amir-ba/scale/issues/2361)) ([8a04a5e](https://github.com/amir-ba/scale/commit/8a04a5e8c0bb3b72a2fbb90822600f6b8feefc06)) +* **nav-item:** add null check for child element before setting role to menuitem ([#2369](https://github.com/amir-ba/scale/issues/2369)) ([5fd16f1](https://github.com/amir-ba/scale/commit/5fd16f1d9f3f5259c004ae6f155117150ee8a0a3)) +* **nav-item:** makes nav-itemcomponent respect the active=false ([#2364](https://github.com/amir-ba/scale/issues/2364)) ([9a999fb](https://github.com/amir-ba/scale/commit/9a999fb298f481d7d94dd430434678021acb007c)) + + + + + + # [3.0.0-beta.154](https://github.com/amir-ba/scale/compare/v3.0.0-beta.152...v3.0.0-beta.154) (2024-11-06) diff --git a/CODEOWNERS b/CODEOWNERS index ecdd717c39..a5792c0651 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -5,4 +5,4 @@ # For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/. # These are the default owners for the whole content of this repository. The default owners are automatically added as reviewers when you open a pull request, unless different owners are specified in the file. -* @maomaoZH @acstll @felix-ico +* @maomaoZH @amir-ba diff --git a/lerna.json b/lerna.json index 4715d803df..7de19fd0c6 100644 --- a/lerna.json +++ b/lerna.json @@ -7,7 +7,7 @@ "--pure-lockfile" ], "useWorkspaces": true, - "version": "3.0.0-beta.154", + "version": "3.0.0-beta.155", "command": { "version": { "allowBranch": "main" diff --git a/packages/components-angular/CHANGELOG.md b/packages/components-angular/CHANGELOG.md index 09d006c99a..7e333a11af 100644 --- a/packages/components-angular/CHANGELOG.md +++ b/packages/components-angular/CHANGELOG.md @@ -3,6 +3,15 @@ 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.155](https://github.com/telekom/scale/compare/v3.0.0-beta.154...v3.0.0-beta.155) (2024-11-26) + +**Note:** Version bump only for package @telekom/scale-components-angular + + + + + + # [3.0.0-beta.154](https://github.com/telekom/scale/compare/v3.0.0-beta.152...v3.0.0-beta.154) (2024-11-06) **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 579ce4ea1f..9092183081 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.154", + "version": "3.0.0-beta.155", "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 ea74e3edcf..4542fc85ef 100644 --- a/packages/components-react/CHANGELOG.md +++ b/packages/components-react/CHANGELOG.md @@ -3,6 +3,15 @@ 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.155](https://github.com/telekom/scale/compare/v3.0.0-beta.154...v3.0.0-beta.155) (2024-11-26) + +**Note:** Version bump only for package @telekom/scale-components-react + + + + + + # [3.0.0-beta.154](https://github.com/telekom/scale/compare/v3.0.0-beta.152...v3.0.0-beta.154) (2024-11-06) **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 e33d80ebe6..d188ca76c3 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.154", + "version": "3.0.0-beta.155", "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 99547288dd..e18162d68d 100644 --- a/packages/components-vue/CHANGELOG.md +++ b/packages/components-vue/CHANGELOG.md @@ -3,6 +3,15 @@ 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.155](https://github.com/telekom/scale/compare/v3.0.0-beta.154...v3.0.0-beta.155) (2024-11-26) + +**Note:** Version bump only for package @telekom/scale-components-vue + + + + + + # [3.0.0-beta.154](https://github.com/telekom/scale/compare/v3.0.0-beta.152...v3.0.0-beta.154) (2024-11-06) **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 e7fc109275..208130d1d2 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.154", + "version": "3.0.0-beta.155", "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 e3fe456044..523dca5bae 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -3,6 +3,20 @@ 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.155](https://github.com/telekom/scale/compare/v3.0.0-beta.154...v3.0.0-beta.155) (2024-11-26) + + +### Bug Fixes + +* **drop-down:** fixes hidden input in dropdown-select with null check ([#2361](https://github.com/telekom/scale/issues/2361)) ([8a04a5e](https://github.com/telekom/scale/commit/8a04a5e8c0bb3b72a2fbb90822600f6b8feefc06)) +* **nav-item:** add null check for child element before setting role to menuitem ([#2369](https://github.com/telekom/scale/issues/2369)) ([5fd16f1](https://github.com/telekom/scale/commit/5fd16f1d9f3f5259c004ae6f155117150ee8a0a3)) +* **nav-item:** makes nav-itemcomponent respect the active=false ([#2364](https://github.com/telekom/scale/issues/2364)) ([9a999fb](https://github.com/telekom/scale/commit/9a999fb298f481d7d94dd430434678021acb007c)) + + + + + + # [3.0.0-beta.154](https://github.com/telekom/scale/compare/v3.0.0-beta.152...v3.0.0-beta.154) (2024-11-06) diff --git a/packages/components/package.json b/packages/components/package.json index 5ab2660dd9..41260605e9 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@telekom/scale-components", - "version": "3.0.0-beta.154", + "version": "3.0.0-beta.155", "description": "Scale is the digital design system for Telekom products and experiences.", "homepage": "https://github.com/telekom/scale", "repository": { diff --git a/packages/components/src/components/dropdown-select/dropdown-select.tsx b/packages/components/src/components/dropdown-select/dropdown-select.tsx index 2c8e429f00..600d644165 100644 --- a/packages/components/src/components/dropdown-select/dropdown-select.tsx +++ b/packages/components/src/components/dropdown-select/dropdown-select.tsx @@ -329,6 +329,9 @@ export class DropdownSelect { } updateInputHidden(value: string = this.value): void { + if (!this.hiddenInput) { + return; + } this.hiddenInput.value = value; } diff --git a/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.css b/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.css index 86a00b32ea..bda5046c0d 100644 --- a/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.css +++ b/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.css @@ -168,14 +168,14 @@ } .scale-telekom-nav-list[variant='main-nav'] - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button), .scale-telekom-nav-list[variant='main-nav'] > scale-menu-flyout - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button), .scale-telekom-nav-list[variant='main-nav'] - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button) { color: var(--telekom-color-text-and-icon-primary-standard); } @@ -255,14 +255,14 @@ } .scale-telekom-nav-list[variant='main-nav'] - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button):after, .scale-telekom-nav-list[variant='functions'] - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button):after, .scale-telekom-nav-list[variant='main-nav'] > scale-menu-flyout - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button):after { content: ''; height: var(--telekom-spacing-composition-space-03); @@ -277,14 +277,14 @@ @media screen and (forced-colors: active), (-ms-high-contrast: active) { .scale-telekom-nav-list[variant='main-nav'] - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button), .scale-telekom-nav-list[variant='functions'] - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button), .scale-telekom-nav-list[variant='main-nav'] > scale-menu-flyout - > .scale-telekom-nav-item[active] + > .scale-telekom-nav-item[active]:not([active='false']) > :where(a, button) { border-bottom: 2px solid hsl(0, 0%, 100%); } diff --git a/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx b/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx index abf898fc15..7b26549d39 100644 --- a/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx +++ b/packages/components/src/components/telekom/telekom-nav-item/telekom-nav-item.tsx @@ -71,7 +71,7 @@ export class TelekomNavItem { el.matches('a, button') ); const parentRole = this.hostElement.parentElement?.getAttribute('role'); - if (parentRole === 'menu') { + if (child && parentRole === 'menu') { child.setAttribute('role', 'menuitem'); } } diff --git a/packages/components/src/html/dropdown-select.html b/packages/components/src/html/dropdown-select.html index bbb0ebf20b..6a66117b48 100644 --- a/packages/components/src/html/dropdown-select.html +++ b/packages/components/src/html/dropdown-select.html @@ -23,7 +23,7 @@ -
+