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
+ 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..9faf8fc903 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)
+ - [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
+ 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..e531b1d31d 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)
+ - [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
+ 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..80c85a2ec3 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,11 @@ 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;
+
+ /** (optional) override to set a custom role */
+ @Prop() role? = "menu";
/** Event triggered when menu list opened */
@Event({ eventName: 'scale-open' }) scaleOpen: EventEmitter<{
@@ -282,7 +287,7 @@ export class MenuFlyoutList {
updateTriggerAttributes() {
const trigger = this.trigger();
- if (trigger && trigger.getAttribute('aria-haspopup') === 'true') {
+ if (trigger && trigger.getAttribute('aria-haspopup') === 'true' || trigger.getAttribute('class') === 'scale-menu-trigger') {
trigger.setAttribute('aria-expanded', String(this.opened));
}
}
@@ -341,14 +346,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 +472,7 @@ export class MenuFlyoutList {
render() {
return (
-
+