mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-21 10:37:51 +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(),
|
||||
className: 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
|
||||
// should check should not apply to dropdown parent item
|
||||
// .xor('href', 'to');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue