mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-22 19:17:46 +02:00
fix(v2): navbar, allow unknown attributes (#3140)
This commit is contained in:
parent
33bb9087cf
commit
d1a27efe8c
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ const DefaultNavbarItemSchema = Joi.object({
|
||||||
activeBaseRegex: Joi.string(),
|
activeBaseRegex: Joi.string(),
|
||||||
className: Joi.string(),
|
className: Joi.string(),
|
||||||
'aria-label': Joi.string(),
|
'aria-label': Joi.string(),
|
||||||
});
|
})
|
||||||
|
// We allow any unknown attributes on the links
|
||||||
|
// (users may need additional attributes like target, aria-role, data-customAttribute...)
|
||||||
|
.unknown();
|
||||||
// TODO the dropdown parent item can have no href/to
|
// TODO the dropdown parent item can have no href/to
|
||||||
// should check should not apply to dropdown parent item
|
// should check should not apply to dropdown parent item
|
||||||
// .xor('href', 'to');
|
// .xor('href', 'to');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue