-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add experimental ResponsiveBlockControl
component
#16790
Commits on Oct 30, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 23807cf - Browse repository at this point
Copy the full SHA 23807cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95bfae8 - Browse repository at this point
Copy the full SHA 95bfae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd64a53 - Browse repository at this point
Copy the full SHA dd64a53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8116762 - Browse repository at this point
Copy the full SHA 8116762View commit details -
Automatically render responsive controls based on default control
Continue to allow full customisation of the responsive controls, but by default render the responsive fields using the same markup as the default control. This avoids duplication when consuming the component.
Configuration menu - View commit details
-
Copy full SHA for 4ca0fc5 - Browse repository at this point
Copy the full SHA 4ca0fc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe7c77d - Browse repository at this point
Copy the full SHA fe7c77dView commit details -
Invert toggle and language to be on by default.
Addresses points raised in #16790
Configuration menu - View commit details
-
Copy full SHA for e051305 - Browse repository at this point
Copy the full SHA e051305View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c6e8b2 - Browse repository at this point
Copy the full SHA 9c6e8b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2d1bfc - Browse repository at this point
Copy the full SHA f2d1bfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa1ec5f - Browse repository at this point
Copy the full SHA aa1ec5fView commit details -
Update to switch toggle to preceed controls
Addresses concern raised in #16790
Configuration menu - View commit details
-
Copy full SHA for eb5e9ba - Browse repository at this point
Copy the full SHA eb5e9baView commit details -
Update individual control labels to fully describe control for a11y
Address concerns raised in #16790
Configuration menu - View commit details
-
Copy full SHA for bec9001 - Browse repository at this point
Copy the full SHA bec9001View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1907640 - Browse repository at this point
Copy the full SHA 1907640View commit details -
Improves i18n of generated control label
Addresses #16790 (comment). Note that aria-describedby is the correct type of aria role for this use case https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute
Configuration menu - View commit details
-
Copy full SHA for 17eec18 - Browse repository at this point
Copy the full SHA 17eec18View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9c5e08 - Browse repository at this point
Copy the full SHA c9c5e08View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb9c5f3 - Browse repository at this point
Copy the full SHA eb9c5f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 238d541 - Browse repository at this point
Copy the full SHA 238d541View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1af87b9 - Browse repository at this point
Copy the full SHA 1af87b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51b43a6 - Browse repository at this point
Copy the full SHA 51b43a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20a95b4 - Browse repository at this point
Copy the full SHA 20a95b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a64c2cd - Browse repository at this point
Copy the full SHA a64c2cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9926612 - Browse repository at this point
Copy the full SHA 9926612View commit details -
Update to make label component part of component’s internal API
Addresses #16790 (comment). Also updates tests.
Configuration menu - View commit details
-
Copy full SHA for d210cfe - Browse repository at this point
Copy the full SHA d210cfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b81e605 - Browse repository at this point
Copy the full SHA b81e605View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8605087 - Browse repository at this point
Copy the full SHA 8605087View commit details -
This component is now provided by internal API and doesn’t need exposing. Addresses #16790 (comment)
Configuration menu - View commit details
-
Copy full SHA for 3ac118d - Browse repository at this point
Copy the full SHA 3ac118dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 045dd49 - Browse repository at this point
Copy the full SHA 045dd49View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5bfc06 - Browse repository at this point
Copy the full SHA b5bfc06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c9841c - Browse repository at this point
Copy the full SHA 5c9841cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2bea8c - Browse repository at this point
Copy the full SHA b2bea8cView commit details -
Update to useCallback to avoid expensive DOM re-renders
Addresses #16790 (comment) See also #16791 (comment)
Configuration menu - View commit details
-
Copy full SHA for 827bb82 - Browse repository at this point
Copy the full SHA 827bb82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 059b5a5 - Browse repository at this point
Copy the full SHA 059b5a5View commit details -
Updates devices list to contain unique non-translatable slug
This addresses concern that we need to be able to identify a “size” by a value that does not change due to translations. See #16790 (comment)
Configuration menu - View commit details
-
Copy full SHA for ce3be6f - Browse repository at this point
Copy the full SHA ce3be6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 195aef5 - Browse repository at this point
Copy the full SHA 195aef5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e821dc9 - Browse repository at this point
Copy the full SHA e821dc9View commit details -
Rename “legend” prop to “title”
This prop was named based on implementation details. Switching out for more agnostic term.
Configuration menu - View commit details
-
Copy full SHA for 863783c - Browse repository at this point
Copy the full SHA 863783cView commit details -
Fix incorrect usage of _x and replace with translator comments
Addresses #16790 (comment) Noting that this type of comment seems to be undocumented in Gutenberg…
Configuration menu - View commit details
-
Copy full SHA for 8ebbd2c - Browse repository at this point
Copy the full SHA 8ebbd2cView commit details -
Update internal nomenclature from “device” to “viewport”
This is a small terminology change which could have a big change on the way developers think about repsonsive settings. We shouldn’t be thinking about “devices” but rather “viewports” / screen sizes. We can still present to the user as “devices” but the developer should not be tying layout changes to specific devices (or conceptual groups of devices - eg: “Mobile”).
Configuration menu - View commit details
-
Copy full SHA for 64e719f - Browse repository at this point
Copy the full SHA 64e719fView commit details
Commits on Nov 1, 2019
-
Refactor to make component fully controlled
Addresses #16790 (comment) by making the state of the responsive mode controlled by the consuming component. This completes the process of making the component fully controlled.
Configuration menu - View commit details
-
Copy full SHA for e6aad72 - Browse repository at this point
Copy the full SHA e6aad72View commit details -
Adds custom hook useResponsiveBlockControl
Attempt to relieve some of the overhead associated with having ResponsiveBlockControl be a fully controlled component. By consuming this hook, a developer can wire up a default handler for toggling responsive mode without having to worry about creating their own useState-based hooks.
Configuration menu - View commit details
-
Copy full SHA for 48529f7 - Browse repository at this point
Copy the full SHA 48529f7View commit details -
Revert "Adds custom hook useResponsiveBlockControl"
This reverts commit 48529f7.
Configuration menu - View commit details
-
Copy full SHA for d72e6af - Browse repository at this point
Copy the full SHA d72e6afView commit details -
Configuration menu - View commit details
-
Copy full SHA for a46f406 - Browse repository at this point
Copy the full SHA a46f406View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15da1b3 - Browse repository at this point
Copy the full SHA 15da1b3View commit details