@energysage/es-ds-components 3.2.1 → 3.2.3

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.
@@ -30,7 +30,14 @@ const modalPt = {
30
30
  class: 'modal-title',
31
31
  },
32
32
  closeButton: {
33
- class: 'close',
33
+ class: [
34
+ 'close',
35
+ {
36
+ // if closable is true, keep the close button around (for accessibility, and to
37
+ // allow Escape to still close the modal), but hide it visually
38
+ 'sr-only': !props.closable,
39
+ },
40
+ ],
34
41
  },
35
42
  content: {
36
43
  class: `modal-body ${props.bodyClass}`,
@@ -72,7 +79,6 @@ const getSizeClass = computed(() => {
72
79
  modal
73
80
  :class="getSizeClass"
74
81
  :pt="modalPt"
75
- :closable="closable"
76
82
  dismissable-mask
77
83
  @update:visible="onChange">
78
84
  <template
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import ProgressBar from 'primevue/progressbar';
3
+ import { omit } from '#imports';
3
4
 
4
5
  const BASE_FONT_SIZE = 16;
5
6
  const DEFAULT_BAR_HEIGHT = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energysage/es-ds-components",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "An EnergySage Vue component library",