@gitlab/ui 104.1.0 → 104.1.1
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.
- package/CHANGELOG.md +7 -0
- package/dist/vendor/bootstrap-vue/src/components/modal/modal.js +2 -8
- package/package.json +1 -1
- package/src/vendor/bootstrap-vue/src/components/modal/README.md +2 -3
- package/src/vendor/bootstrap-vue/src/components/modal/modal.js +2 -6
- package/src/vendor/bootstrap-vue/src/components/modal/package.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [104.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v104.1.0...v104.1.1) (2024-12-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove unused `title-sr-only` prop in `modal.js` ([d41a24e](https://gitlab.com/gitlab-org/gitlab-ui/commit/d41a24e28c4d72058701bd5aad1758c3da72f3b6))
|
|
7
|
+
|
|
1
8
|
# [104.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v104.0.0...v104.1.0) (2024-12-03)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -116,7 +116,6 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
116
116
|
title: makeProp(PROP_TYPE_STRING),
|
|
117
117
|
titleClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
118
118
|
titleHtml: makeProp(PROP_TYPE_STRING),
|
|
119
|
-
titleSrOnly: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
120
119
|
titleTag: makeProp(PROP_TYPE_STRING, 'h5')
|
|
121
120
|
}), NAME_MODAL);
|
|
122
121
|
|
|
@@ -183,7 +182,7 @@ const BModal = /*#__PURE__*/extend({
|
|
|
183
182
|
return [{
|
|
184
183
|
fade: !this.noFade,
|
|
185
184
|
show: this.isShow,
|
|
186
|
-
'
|
|
185
|
+
'gl-block': this.isBlock
|
|
187
186
|
}, this.modalClass];
|
|
188
187
|
},
|
|
189
188
|
modalStyles() {
|
|
@@ -200,11 +199,6 @@ const BModal = /*#__PURE__*/extend({
|
|
|
200
199
|
'modal-dialog-scrollable': this.scrollable
|
|
201
200
|
}, this.dialogClass];
|
|
202
201
|
},
|
|
203
|
-
titleClasses() {
|
|
204
|
-
return [{
|
|
205
|
-
'sr-only': this.titleSrOnly
|
|
206
|
-
}, this.titleClass];
|
|
207
|
-
},
|
|
208
202
|
modalOuterStyle() {
|
|
209
203
|
// Styles needed for proper stacking of modals
|
|
210
204
|
return {
|
|
@@ -689,7 +683,7 @@ const BModal = /*#__PURE__*/extend({
|
|
|
689
683
|
}
|
|
690
684
|
$modalHeader = [h(this.titleTag, {
|
|
691
685
|
staticClass: 'modal-title',
|
|
692
|
-
class: this.
|
|
686
|
+
class: this.titleClass,
|
|
693
687
|
attrs: {
|
|
694
688
|
id: this.modalTitleId
|
|
695
689
|
},
|
package/package.json
CHANGED
|
@@ -908,14 +908,13 @@ most cases.
|
|
|
908
908
|
|
|
909
909
|
- The `aria-labelledby` attribute will **not** be present if you have the header hidden, or supplied
|
|
910
910
|
your own header, or have not supplied a modal title. It is recommended to supply a title for your
|
|
911
|
-
modals (when using the built in header).
|
|
912
|
-
available to screen readers by setting the `title-sr-only` prop. If you do not have a header, you
|
|
911
|
+
modals (when using the built in header). If you do not have a header, you
|
|
913
912
|
can supply a label for the modal by passing a string to the `aria-label` prop.
|
|
914
913
|
- The `aria-describedby` attribute will always point to the modal's body content.
|
|
915
914
|
- If the `aria-label` prop is specified with a string value, the `aria-labelledby` attribute will
|
|
916
915
|
not be rendered, even if you have a title/header for your modal.
|
|
917
916
|
|
|
918
|
-
The `aria-label`
|
|
917
|
+
The `aria-label` prop was added in version `v2.0.0-rc.27`.
|
|
919
918
|
|
|
920
919
|
### Auto focus on open
|
|
921
920
|
|
|
@@ -158,7 +158,6 @@ export const props = makePropsConfigurable(
|
|
|
158
158
|
title: makeProp(PROP_TYPE_STRING),
|
|
159
159
|
titleClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
160
160
|
titleHtml: makeProp(PROP_TYPE_STRING),
|
|
161
|
-
titleSrOnly: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
162
161
|
titleTag: makeProp(PROP_TYPE_STRING, 'h5')
|
|
163
162
|
}),
|
|
164
163
|
NAME_MODAL
|
|
@@ -229,7 +228,7 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
229
228
|
{
|
|
230
229
|
fade: !this.noFade,
|
|
231
230
|
show: this.isShow,
|
|
232
|
-
'
|
|
231
|
+
'gl-block': this.isBlock
|
|
233
232
|
},
|
|
234
233
|
this.modalClass
|
|
235
234
|
]
|
|
@@ -251,9 +250,6 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
251
250
|
this.dialogClass
|
|
252
251
|
]
|
|
253
252
|
},
|
|
254
|
-
titleClasses() {
|
|
255
|
-
return [{ 'sr-only': this.titleSrOnly }, this.titleClass]
|
|
256
|
-
},
|
|
257
253
|
modalOuterStyle() {
|
|
258
254
|
// Styles needed for proper stacking of modals
|
|
259
255
|
return {
|
|
@@ -760,7 +756,7 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
760
756
|
this.titleTag,
|
|
761
757
|
{
|
|
762
758
|
staticClass: 'modal-title',
|
|
763
|
-
class: this.
|
|
759
|
+
class: this.titleClass,
|
|
764
760
|
attrs: { id: this.modalTitleId },
|
|
765
761
|
// TODO: Rename slot to `title` and deprecate `modal-title`
|
|
766
762
|
domProps: this.hasNormalizedSlot(SLOT_NAME_MODAL_TITLE)
|
|
@@ -182,10 +182,6 @@
|
|
|
182
182
|
"prop": "size",
|
|
183
183
|
"description": "Set the size of the modal's width. 'sm', 'md' (default), 'lg', or 'xl'"
|
|
184
184
|
},
|
|
185
|
-
{
|
|
186
|
-
"prop": "titleSrOnly",
|
|
187
|
-
"description": "Wraps the title in an '.sr-only' wrapper"
|
|
188
|
-
},
|
|
189
185
|
{
|
|
190
186
|
"prop": "titleTag",
|
|
191
187
|
"description": "Specify the HTML tag to render instead of the default tag for the title"
|