-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(theme-classic): allow className as option for type: "search" #7357
Conversation
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test case for the validation schema, although it's kind of obvious that it will work. Unit tests are always more effective than yarn link
😉
@Josh-Cena I would be more than happy to add one, but could not find any tests there. Are there some existing which I overlooked? I am pretty sure I am not the first person adding tests for this |
Oh ya true. Just found them thanks, I will add them right away. |
54e97d6
to
141a79e
Compare
@Josh-Cena implementation wise (apart from the validation) there are no tests am I right? |
No, we don't have theme tests yet😞 I think this is the best we can do. It doesn't look like it shouldn't work. |
packages/docusaurus-theme-classic/src/theme/Navbar/Content/index.tsx
Outdated
Show resolved
Hide resolved
141a79e
to
7e89d49
Compare
packages/docusaurus-theme-classic/src/theme/Navbar/Content/index.tsx
Outdated
Show resolved
Hide resolved
@Josh-Cena friendly ping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's good from my side. However I'd also like to get @slorber's approval. He'd been unavailable for the past two weeks; I think he'll be back this week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thanks @JPeer264! |
Pre-flight checklist
Motivation
Please refer to this issue comment
#7164 (comment)
Test Plan
I tried to use
yarn lerna link
and linked it in a new setup project but still got[ERROR] ValidationError: "navbar.items[0].className" is not allowed
although it has been added to the Joi validation schema. I might need help on this part (cc: @slorber)Test links
Deploy preview: https://deploy-preview-7357--docusaurus-2.netlify.app/
New changes: https://deploy-preview-7357--docusaurus-2.netlify.app/docs/api/themes/configuration#navbar-search