Skip to content
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

Update @material/web version and GM3 Checkbox component. #7108

Merged
merged 9 commits into from
May 31, 2023

Conversation

techanvil
Copy link
Collaborator

@techanvil techanvil commented May 30, 2023

Summary

Addresses issue:

Relevant technical choices

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 5.6.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

new Event( 'change', { bubbles: true, cancelable: true } )
);
};
const labelID = `${ id }-label`;
Copy link
Collaborator Author

@techanvil techanvil May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that the element-internals-polyfill package (introduced in this PR to to polyfill attachInternals() for JSDom) sets aria-labelledby reminded me that we should do that ourselves for non-polyfilled production scenarios.

@github-actions
Copy link

github-actions bot commented May 30, 2023

Build files for abb85cc have been deleted.

@github-actions
Copy link

github-actions bot commented May 30, 2023

Size Change: +274 B (0%)

Total Size: 1.32 MB

Filename Size Change
./dist/assets/js/googlesitekit-activation-********************.js 23.3 kB +6 B (0%)
./dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 43.3 kB -31 B (0%)
./dist/assets/js/googlesitekit-adminbar-********************.js 32.5 kB -6 B (0%)
./dist/assets/js/googlesitekit-api-********************.js 9.58 kB -1 B (0%)
./dist/assets/js/googlesitekit-components-gm2-********************.js 6.12 kB +2 B (0%)
./dist/assets/js/googlesitekit-components-gm3-********************.js 9.71 kB -22 B (0%)
./dist/assets/js/googlesitekit-datastore-user-********************.js 22.8 kB -2 B (0%)
./dist/assets/js/googlesitekit-entity-dashboard-********************.js 65.1 kB +6 B (0%)
./dist/assets/js/googlesitekit-main-dashboard-********************.js 78.8 kB -10 B (0%)
./dist/assets/js/googlesitekit-modules-********************.js 21.3 kB +30 B (0%)
./dist/assets/js/googlesitekit-modules-adsense-********************.js 95.2 kB +10 B (0%)
./dist/assets/js/googlesitekit-modules-analytics-********************.js 86.3 kB +37 B (0%)
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 28.7 kB +10 B (0%)
./dist/assets/js/googlesitekit-modules-optimize-********************.js 19 kB +1 B (0%)
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 21.4 kB -5 B (0%)
./dist/assets/js/googlesitekit-modules-search-console-********************.js 51.1 kB -8 B (0%)
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 32.3 kB -5 B (0%)
./dist/assets/js/googlesitekit-splash-********************.js 65.7 kB -5 B (0%)
./dist/assets/js/googlesitekit-user-input-********************.js 41 kB -8 B (0%)
./dist/assets/js/googlesitekit-vendor-********************.js 319 kB +287 B (0%)
./dist/assets/js/googlesitekit-widgets-********************.js 16.6 kB -4 B (0%)
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 62.1 kB -8 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/assets/css/googlesitekit-admin-css-********************.min.css 49.1 kB
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 11.2 kB
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 7.55 kB
./dist/assets/js/30-********************.js 2.8 kB
./dist/assets/js/31-********************.js 2.28 kB
./dist/assets/js/32-********************.js 3.72 kB
./dist/assets/js/33-********************.js 3.12 kB
./dist/assets/js/analytics-advanced-tracking-********************.js 769 B
./dist/assets/js/googlesitekit-data-********************.js 2.18 kB
./dist/assets/js/googlesitekit-datastore-forms-********************.js 9.23 kB
./dist/assets/js/googlesitekit-datastore-location-********************.js 2.1 kB
./dist/assets/js/googlesitekit-datastore-site-********************.js 16.3 kB
./dist/assets/js/googlesitekit-datastore-ui-********************.js 9.31 kB
./dist/assets/js/googlesitekit-i18n-********************.js 3.92 kB
./dist/assets/js/googlesitekit-polyfills-********************.js 378 B
./dist/assets/js/googlesitekit-settings-********************.js 48.2 kB
./dist/assets/js/runtime-********************.js 1.26 kB

compressed-size-action

@@ -115,8 +102,8 @@ export default function Checkbox( {
<md-checkbox
id={ id }
ref={ ref }
role="checkbox"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The md-checkbox now has its role automatically set to "production", overriding what we specify here, so there's no point setting it.

).toBe( 'Complex Label With 5 Sub Children' );
} );

it( 'should attach the onKeyDown handler when present', () => {
const onKeyDown = jest.fn();

const { getByRole } = render(
const { getByLabelText } = render(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use getByLabelText() rather than getByRole() to reflect the fact we're no longer setting the role directly.

@@ -34,6 +38,7 @@ module.exports = {
'<rootDir>/node_modules',
'<rootDir>/build',
],
modulePathIgnorePatterns: [ '<rootDir>/.vscode' ],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using the GitHub Copilot plugin, it updates local VSCode settings with regularity when switching back to VSCode, causing watched tests to re-run without the source files changing. Adding this path to modulePathIgnorePatterns prevents this from happening.

@tofumatt tofumatt merged commit bd74aee into develop May 31, 2023
@tofumatt tofumatt deleted the enhancement/6696-update-material-web branch May 31, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants