-
Notifications
You must be signed in to change notification settings - Fork 18
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
Lighthouse score improvements #934
Conversation
@@ -15,8 +15,6 @@ exports[`<PluginComplexFilter /> should match snapshot 1`] = ` | |||
<button | |||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium text-black w-full flex justify-between p-0 pb-2 css-1kjmhix-MuiButtonBase-root-MuiButton-root" | |||
data-testid="button" | |||
label="pluginData:labels.operatingSystem" |
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.
Why did we remove this part?
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.
we've been getting errors on the home page saying that we can't pass the sdsStage
prop to native DOM elements, so this is fixed in this commit: 73cb567
As a result, some other props aren't being passed like label
, but that's fine because we don't want to pass those props to the <button>
element anyway
Description
#898
Improves Lighthouse scoress. This includes various changes such as:
ul
todiv
to fix descendant errorsaria-label
props to buttons and linksh1
-h6
Unfortunately, this only impacts Accessibility scores. To improve the best practices score, we'll need to enable source maps in production which is not working with our current version of Next.js. SEO scores are pretty good for most pages, the only thing we need to do is improve the font size for collection pages. All follow up work is listed below or in #898 (comment)
Demos
Home Page
Before
After
Plugin Page
Before
After
Collection Index Page
Before
After
Collection Page
Before
After
Markdown Pages
Before
After
Follow ups
Opened follow up issues found during profiling: