diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index beb58c45e4..57d51426b3 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -112,10 +112,6 @@ jobs:
run: |
npm deprecate @telekom/scale-components-vue@~3.0.0-beta.17 "Please use @telekom/scale-components directly, see the Scale docs. Vue support for web components is already great."
- - name: Deprecate Scale Design Tokens Package
- run: |
- npm deprecate @telekom/scale-design-tokens@~3.0.0-beta.100 "Deprecated in favor of @telekom/design-tokens."
-
publish-neutral:
runs-on: ubuntu-20.04
environment: RELEASE
@@ -190,6 +186,3 @@ jobs:
run: |
npm deprecate @telekom/scale-components-vue-neutral@~3.0.0-beta.17 "Please use @telekom/scale-components directly, see the Scale docs. Vue support for web components is already great."
- - name: Deprecate Scale Design Tokens Package
- run: |
- npm deprecate @telekom/scale-design-tokens-neutral@~3.0.0-beta.100 "Deprecated in favor of @telekom/design-tokens."
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 637b24d258..9ff8e68503 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,17 @@
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.149](https://github.com/telekom/scale/compare/v3.0.0-beta.148...v3.0.0-beta.149) (2024-02-23)
+
+
+### Bug Fixes
+
+* **telekom-profile-menu:** stories and flyout menu fixes ([#2273](https://github.com/telekom/scale/issues/2273)) ([aa0e237](https://github.com/telekom/scale/commit/aa0e2371305515f0e37fd06acc5d3c9c381d47ac))
+
+
+
+
+
# [3.0.0-beta.148](https://github.com/telekom/scale/compare/v3.0.0-beta.147...v3.0.0-beta.148) (2024-02-15)
diff --git a/lerna.json b/lerna.json
index 50bc583e2f..70eefc0cc2 100644
--- a/lerna.json
+++ b/lerna.json
@@ -7,7 +7,7 @@
"--pure-lockfile"
],
"useWorkspaces": true,
- "version": "3.0.0-beta.148",
+ "version": "3.0.0-beta.149",
"command": {
"version": {
"allowBranch": "main"
diff --git a/package.json b/package.json
index a30d91c38e..89bda1bf92 100644
--- a/package.json
+++ b/package.json
@@ -15,9 +15,9 @@
"new-version": "lerna version --conventional-commits --no-push",
"force-version": "lerna version --conventional-commits --force-publish",
"format": "lerna run format",
- "publish-telekom": "lerna publish -y from-package --no-verify-access --no-git-tag-version --no-push --force-publish @telekom/scale-components,@telekom/scale-components-react,@telekom/scale-components-angular,@telekom/scale-components-vue,@telekom/scale-design-tokens --dist-tag next",
+ "publish-telekom": "lerna publish -y from-package --no-verify-access --no-git-tag-version --no-push --force-publish @telekom/scale-components,@telekom/scale-components-react,@telekom/scale-components-angular,@telekom/scale-components-vue --dist-tag next",
"prepare-neutral": "node scripts/prepare-neutral-release.js && git commit . -m 'chore: temp commit'",
- "publish-neutral": "lerna publish -y from-package --no-verify-access --no-git-tag-version --no-push --force-publish @telekom/scale-components-neutral,@telekom/scale-components-react-neutral,@telekom/scale-components-angular-neutral,@telekom/scale-components-vue-neutral,@telekom/scale-design-tokens-neutral --dist-tag next"
+ "publish-neutral": "lerna publish -y from-package --no-verify-access --no-git-tag-version --no-push --force-publish @telekom/scale-components-neutral,@telekom/scale-components-react-neutral,@telekom/scale-components-angular-neutral,@telekom/scale-components-vue-neutral --dist-tag next"
},
"devDependencies": {
"@commitlint/cli": "^12.1.1",
diff --git a/packages/components-angular/CHANGELOG.md b/packages/components-angular/CHANGELOG.md
index c20cda22cc..0933ac64f9 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.149](https://github.com/telekom/scale/compare/v3.0.0-beta.148...v3.0.0-beta.149) (2024-02-23)
+
+**Note:** Version bump only for package @telekom/scale-components-angular
+
+
+
+
+
# [3.0.0-beta.148](https://github.com/telekom/scale/compare/v3.0.0-beta.147...v3.0.0-beta.148) (2024-02-15)
**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 bfe74af06e..179a229177 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.148",
+ "version": "3.0.0-beta.149",
"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 1738875452..19fd02d308 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.149](https://github.com/telekom/scale/compare/v3.0.0-beta.148...v3.0.0-beta.149) (2024-02-23)
+
+**Note:** Version bump only for package @telekom/scale-components-react
+
+
+
+
+
# [3.0.0-beta.148](https://github.com/telekom/scale/compare/v3.0.0-beta.147...v3.0.0-beta.148) (2024-02-15)
**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 94566564ea..9f62a139dc 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.148",
+ "version": "3.0.0-beta.149",
"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 1099d4a0d7..cdba6549d9 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.149](https://github.com/telekom/scale/compare/v3.0.0-beta.148...v3.0.0-beta.149) (2024-02-23)
+
+**Note:** Version bump only for package @telekom/scale-components-vue
+
+
+
+
+
# [3.0.0-beta.148](https://github.com/telekom/scale/compare/v3.0.0-beta.147...v3.0.0-beta.148) (2024-02-15)
**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 80707b56c3..01eb0f725d 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.148",
+ "version": "3.0.0-beta.149",
"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 2f1a95cbb6..1a3981f495 100644
--- a/packages/components/CHANGELOG.md
+++ b/packages/components/CHANGELOG.md
@@ -3,6 +3,17 @@
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.149](https://github.com/telekom/scale/compare/v3.0.0-beta.148...v3.0.0-beta.149) (2024-02-23)
+
+
+### Bug Fixes
+
+* **telekom-profile-menu:** stories and flyout menu fixes ([#2273](https://github.com/telekom/scale/issues/2273)) ([aa0e237](https://github.com/telekom/scale/commit/aa0e2371305515f0e37fd06acc5d3c9c381d47ac))
+
+
+
+
+
# [3.0.0-beta.148](https://github.com/telekom/scale/compare/v3.0.0-beta.147...v3.0.0-beta.148) (2024-02-15)
diff --git a/packages/components/package.json b/packages/components/package.json
index 5177553535..dc0b56dc7c 100644
--- a/packages/components/package.json
+++ b/packages/components/package.json
@@ -1,6 +1,6 @@
{
"name": "@telekom/scale-components",
- "version": "3.0.0-beta.148",
+ "version": "3.0.0-beta.149",
"description": "Scale is the digital design system for Telekom products and experiences.",
"homepage": "https://github.com/telekom/scale",
"repository": {
@@ -73,7 +73,6 @@
"@floating-ui/dom": "^1.2.8",
"@stencil/core": "^2.17.0",
"@telekom/design-tokens": "1.0.0-beta.10",
- "@telekom/scale-design-tokens": "^3.0.0-beta.148",
"classnames": "^2.2.6",
"composed-offset-position": "^0.0.4",
"stencil-inline-svg": "^1.0.1"
diff --git a/packages/components/src/components/badge/badge.tsx b/packages/components/src/components/badge/badge.tsx
index 1ce007a17e..b67444ee97 100644
--- a/packages/components/src/components/badge/badge.tsx
+++ b/packages/components/src/components/badge/badge.tsx
@@ -49,6 +49,7 @@ export class Badge {
aria-label={this.count ? this.getAriaLabel() : this.label}
>
+
scale-badge
+ scale-telekom-profile-menu --> scale-badge
style scale-badge fill:#f9f,stroke:#333,stroke-width:4px
```
diff --git a/packages/components/src/components/button/readme.md b/packages/components/src/components/button/readme.md
index cf55878d1d..b389c0e0f1 100644
--- a/packages/components/src/components/button/readme.md
+++ b/packages/components/src/components/button/readme.md
@@ -45,6 +45,7 @@ Type: `Promise`
- [app-navigation-user-menu](../telekom/app-navigation-user-menu)
- [scale-data-grid](../data-grid)
- [scale-notification](../notification)
+ - [scale-telekom-profile-menu](../telekom/telekom-profile-menu)
### Graph
```mermaid
@@ -52,6 +53,7 @@ graph TD;
app-navigation-user-menu --> scale-button
scale-data-grid --> scale-button
scale-notification --> scale-button
+ scale-telekom-profile-menu --> scale-button
style scale-button fill:#f9f,stroke:#333,stroke-width:4px
```
diff --git a/packages/components/src/components/link/readme.md b/packages/components/src/components/link/readme.md
index d02f8c3eca..c6c6e1f1ec 100644
--- a/packages/components/src/components/link/readme.md
+++ b/packages/components/src/components/link/readme.md
@@ -108,6 +108,7 @@ Type: `Promise`
- [scale-data-grid](../data-grid)
- [scale-notification-banner](../notification-banner)
- [scale-notification-toast](../notification-toast)
+ - [scale-telekom-profile-menu](../telekom/telekom-profile-menu)
### Graph
```mermaid
@@ -115,6 +116,7 @@ graph TD;
scale-data-grid --> scale-link
scale-notification-banner --> scale-link
scale-notification-toast --> scale-link
+ scale-telekom-profile-menu --> scale-link
style scale-link fill:#f9f,stroke:#333,stroke-width:4px
```
diff --git a/packages/components/src/components/menu-flyout-list/menu-flyout-list.tsx b/packages/components/src/components/menu-flyout-list/menu-flyout-list.tsx
index e38cb7af66..334f8f919b 100644
--- a/packages/components/src/components/menu-flyout-list/menu-flyout-list.tsx
+++ b/packages/components/src/components/menu-flyout-list/menu-flyout-list.tsx
@@ -59,6 +59,8 @@ export class MenuFlyoutList {
@Prop() brandHeaderDropdown: boolean = false;
/** (optional) Injected styles */
@Prop() styles?: string;
+ /** (optional) set to true to prevent flipping orientation when off the screen vertically */
+ @Prop() preventFlipVertical: boolean = false;
/** Event triggered when menu list opened */
@Event({ eventName: 'scale-open' }) scaleOpen: EventEmitter<{
@@ -102,6 +104,12 @@ export class MenuFlyoutList {
return this.trigger().getBoundingClientRect();
}
+ componentDidLoad() {
+ if (!this.hostElement.hasAttribute('role')) {
+ this.hostElement.setAttribute('role', 'menu');
+ }
+ }
+
componentDidRender() {
if (this.opened && this.needsCheckPlacement) {
this.setSize();
@@ -282,7 +290,10 @@ export class MenuFlyoutList {
updateTriggerAttributes() {
const trigger = this.trigger();
- if (trigger && trigger.getAttribute('aria-haspopup') === 'true') {
+ if (
+ (trigger && trigger.getAttribute('aria-haspopup') === 'true') ||
+ trigger.classList.contains('scale-menu-trigger')
+ ) {
trigger.setAttribute('aria-expanded', String(this.opened));
}
}
@@ -341,14 +352,14 @@ export class MenuFlyoutList {
if (rect.top < PAD) {
// console.log('off top edge');
isOutOfBounds = true;
- if (this.direction.includes('top')) {
+ if (this.direction.includes('top') && !this.preventFlipVertical) {
this.flipVertical = true;
}
}
if (rect.bottom > this.windowHeight - PAD) {
// console.log('off bottom edge');
isOutOfBounds = true;
- if (this.direction.includes('bottom')) {
+ if (this.direction.includes('bottom') && !this.preventFlipVertical) {
this.flipVertical = true;
}
}
@@ -467,7 +478,7 @@ export class MenuFlyoutList {
render() {
return (
-
+