@brightspace-ui/core 3.260.0 → 3.260.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import '../button/button.js';
2
+ import '../../helpers/viewport-size.js';
2
3
  import '../../helpers/visualReady.js';
3
4
  import { css, html } from 'lit';
4
5
  import { classMap } from 'lit/directives/class-map.js';
@@ -164,7 +165,8 @@ export const DropdownPopoverMixin = superclass => class extends LocalizeCoreElem
164
165
 
165
166
  :host([_mobile][_mobile-tray-location="inline-start"][opened]) .dropdown-content-layout,
166
167
  :host([_mobile][_mobile-tray-location="inline-end"][opened]) .dropdown-content-layout {
167
- height: 100vh;
168
+ height: calc(var(--d2l-vh, 1vh) * 100);
169
+ height: 100dvh;
168
170
  }
169
171
  `];
170
172
  }
@@ -78,7 +78,6 @@ Items added to this container element will no longer wrap onto a second line whe
78
78
 
79
79
  | Property | Type | Description |
80
80
  |--|--|--|
81
- | `auto-show` | Boolean | Automatically determine the min and maximum number of items to show based on which elements have classes `d2l-button-group-show` and `d2l-button-group-no-show`. Please consult the design team when using this attribute. |
82
81
  | `min-to-show` | Number | The minimum number of elements to always show. Please consult the design team when using this attribute. |
83
82
  | `max-to-show` | Number | The maximum number of elements to show |
84
83
  | `opener-style` | String | Set the style of the overflow menu `default` renders a `d2l-button` while `subtle` will render a `d2l-button-subtle`|
@@ -129,4 +128,4 @@ getOverflowContainer(overflowItems, mini) {
129
128
 
130
129
  Navigation and focus order are impacted when items overflow the viewport; they are physically moved into the More Actions menu. Since this effect is not limited to visual presentation, it affects both screen reader users and sighted users equally.
131
130
 
132
- The accessibility and keyboard interaction of the More Actions menu aligns with [W3C's best practices for menus](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/) — see [Menu](../menu) for more information.
131
+ The accessibility and keyboard interaction of the More Actions menu aligns with [W3C's best practices for menus](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/) — see [Menu](../menu) for more information.
@@ -66,7 +66,6 @@ function createMenuItemSeparator() {
66
66
  * A component that can be used to display a set of buttons, links or menus that will be put into a dropdown menu when they no longer fit on the first line of their container
67
67
  * @slot - Buttons, dropdown buttons, links or other items to be added to the container
68
68
  * @attr {'default'|'icon'} [opener-type="default"] - Set the opener type to 'icon' for a `...` menu icon instead of `More actions` text
69
- * @attr {boolean} auto-show - Use predefined classes on slot elements to set min and max buttons to show
70
69
  */
71
70
  class OverflowGroup extends OverflowGroupMixin(LitElement) {
72
71
 
@@ -1,6 +1,7 @@
1
1
  import '../backdrop/backdrop.js';
2
2
  import '../colors/colors.js';
3
3
  import '../focus-trap/focus-trap.js';
4
+ import '../../helpers/viewport-size.js';
4
5
  import { addResizeNoopEventListener, getComposedParent, isComposedAncestor, removeResizeNoopEventListener } from '../../helpers/dom.js';
5
6
  import { clearDismissible, setDismissible } from '../../helpers/dismissible.js';
6
7
  import { css, html, nothing } from 'lit';
@@ -241,7 +242,8 @@ export const PopoverMixin = superclass => class extends superclass {
241
242
 
242
243
  :host([_mobile][_mobile-tray-location="inline-start"][opened]) .content-container,
243
244
  :host([_mobile][_mobile-tray-location="inline-end"][opened]) .content-container {
244
- height: 100vh;
245
+ height: calc(var(--d2l-vh, 1vh) * 100);
246
+ height: 100dvh;
245
247
  }
246
248
 
247
249
  :host([_mobile][_mobile-tray-location]) > .pointer {
@@ -12225,11 +12225,6 @@
12225
12225
  "description": "Set the opener type to 'icon' for a `...` menu icon instead of `More actions` text",
12226
12226
  "type": "'default'|'icon'",
12227
12227
  "default": "\"default\""
12228
- },
12229
- {
12230
- "name": "auto-show",
12231
- "description": "Use predefined classes on slot elements to set min and max buttons to show",
12232
- "type": "boolean"
12233
12228
  }
12234
12229
  ],
12235
12230
  "properties": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.260.0",
3
+ "version": "3.260.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",