A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/b980017139613db5d7c8df4293a4d80673c9e646 below:

only set `aria-describedby` when caption really exists … · bootstrap-vue/bootstrap-vue@b980017 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+5

-9

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+5

-9

lines changed Original file line number Diff line number Diff line change

@@ -20,8 +20,6 @@ export const captionMixin = Vue.extend({

20 20

props,

21 21

computed: {

22 22

captionId() {

23 -

// Even though `this.safeId` looks like a method, it is a computed prop

24 -

// that returns a new function if the underlying ID changes

25 23

return this.isStacked ? this.safeId('_caption_') : null

26 24

}

27 25

},

@@ -38,7 +36,8 @@ export const captionMixin = Vue.extend({

38 36

{

39 37

attrs: { id: this.captionId },

40 38

domProps: hasCaptionSlot ? {} : htmlOrText(captionHtml, caption),

41 -

key: 'caption'

39 +

key: 'caption',

40 +

ref: 'caption'

42 41

},

43 42

this.normalizeSlot(SLOT_NAME_TABLE_CAPTION)

44 43

)

Original file line number Diff line number Diff line change

@@ -113,17 +113,14 @@ export const tableRendererMixin = Vue.extend({

113 113

selectableTableAttrs

114 114

} = this

115 115 116 -

// Preserve user supplied aria-describedby, if provided in `$attrs`

117 -

const adb =

118 -

[(this.bvAttrs || {})['aria-describedby'], this.captionId].filter(identity).join(' ') ||

119 -

null

120 - 121 116

const ariaAttrs = this.isTableSimple

122 117

? {}

123 118

: {

124 119

'aria-busy': this.computedBusy ? 'true' : 'false',

125 120

'aria-colcount': toString(fields.length),

126 -

'aria-describedby': adb

121 +

// Preserve user supplied `aria-describedby`, if provided

122 +

'aria-describedby':

123 +

this.bvAttrs['aria-describedby'] || this.$refs.caption ? this.captionId : null

127 124

}

128 125 129 126

const rowCount =

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4