Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(b-nav-form, b-nav-text): ensure these sub-components have
<li>
…
…as root element for accessibility (#4100)
- Loading branch information
1 parent
4aeef50
commit 6774800
Showing
6 changed files
with
142 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
import Vue from '../../utils/vue' | ||
import { mergeData } from 'vue-functional-data-merge' | ||
|
||
export const props = { | ||
tag: { | ||
type: String, | ||
default: 'span' | ||
} | ||
} | ||
export const props = {} | ||
|
||
// @vue/component | ||
export const BNavText = /*#__PURE__*/ Vue.extend({ | ||
name: 'BNavText', | ||
functional: true, | ||
props, | ||
render(h, { props, data, children }) { | ||
return h(props.tag, mergeData(data, { staticClass: 'navbar-text' }), children) | ||
return h('li', mergeData(data, { staticClass: 'navbar-text' }), children) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters