-
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
Block Styles: Show style preview when hovered or focused #34522
Commits on Nov 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 098b54b - Browse repository at this point
Copy the full SHA 098b54bView commit details -
Tweaking text and hover colours
Removing commented out code Consolidating handlers
Configuration menu - View commit details
-
Copy full SHA for 6fb45f3 - Browse repository at this point
Copy the full SHA 6fb45f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04e7ac1 - Browse repository at this point
Copy the full SHA 04e7ac1View commit details -
Experimenting with removing the default style picker select dropdown …
…with a button click, based on the active style Updating block supports readme to remove references to the select dropdown Refactoring DefaultStylePicker Replacing the transform menu style switcher with a menu
Configuration menu - View commit details
-
Copy full SHA for e334afa - Browse repository at this point
Copy the full SHA e334afaView commit details -
Abstract renderedStyles, which adds a default to the array for user s…
…election on the frontend.
Configuration menu - View commit details
-
Copy full SHA for caf01b9 - Browse repository at this point
Copy the full SHA caf01b9View commit details -
Reduce the switcher to a Make default button where the preferred defa…
…ult is not selected. Added tests for getRenderedStyles
Configuration menu - View commit details
-
Copy full SHA for 05952b2 - Browse repository at this point
Copy the full SHA 05952b2View commit details -
Aligning preview with preview block popover styles
Creating custom DOMRect object to pass to the PopOver component to set x value.
Configuration menu - View commit details
-
Copy full SHA for 9aa6248 - Browse repository at this point
Copy the full SHA 9aa6248View commit details -
Configuration menu - View commit details
-
Copy full SHA for a651c01 - Browse repository at this point
Copy the full SHA a651c01View commit details -
Cleaning up styles and classnames
`.block-editor-block-styles__item` should exist for the e2e test: style-variation.test.js
Configuration menu - View commit details
-
Copy full SHA for 35ea380 - Browse repository at this point
Copy the full SHA 35ea380View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a1cf50 - Browse repository at this point
Copy the full SHA 3a1cf50View commit details -
This commit reverts the default style picker, and creates a condition…
… to only show the default picker dropdown where a non-default style has been previously selected. So effectively, we're removing the default style picker from the view. The default style picker will some day be moved to global styles.
Configuration menu - View commit details
-
Copy full SHA for e16a4eb - Browse repository at this point
Copy the full SHA e16a4ebView commit details -
- debounces the setHoveredStyle state to avoid flickering effect in the preview when unsetting/setting value - we need to give more specificity to the classes that hide the preview on narrow widths to avoid overriding - giving the style buttons fixed widths with ellipses on overflowing text
Configuration menu - View commit details
-
Copy full SHA for ebc57c5 - Browse repository at this point
Copy the full SHA ebc57c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51cf2f3 - Browse repository at this point
Copy the full SHA 51cf2f3View commit details -
Using the Text component to control character overflow.
Removing ellipsis styles. This commit: - uses InserterPreviewPanel to show the block styles previews, adjusts the attributes being passed to this component so that it displays the correct title. - remove unused styles
Configuration menu - View commit details
-
Copy full SHA for 8373343 - Browse repository at this point
Copy the full SHA 8373343View commit details -
This commit splits BlockStyles component into two components: one for…
… the settings sidebar and one for inclusion within menu groups. We are abstracting much of the shared logic to a hook. We've replaced current usages of BlockStyles (2) with the new, specific components. Also, instead of using `getAnchorRect` to calculate the popover left position, let's overwrite with !important the position of the popover container using the width of the sidebar plus gutter.
Configuration menu - View commit details
-
Copy full SHA for 7e1c8f5 - Browse repository at this point
Copy the full SHA 7e1c8f5View commit details -
This commit fixes the position of the block preview container and rem…
…oves the popover. Adding panel header height to the top position of the preview panel, since there's going to be at least one.
Configuration menu - View commit details
-
Copy full SHA for aa7bc1d - Browse repository at this point
Copy the full SHA aa7bc1dView commit details -
This is an attempt to ensure that we should the preview panel outside…
… the confines of the sidebar container. Removing overflow: auto allows us to position elements beyond the container. We have to detect fullscreen vs non-fullscreen mode to allow for varying top positions. Also updated selected active states of the button.
Configuration menu - View commit details
-
Copy full SHA for e1c8294 - Browse repository at this point
Copy the full SHA e1c8294View commit details -
This commit adds a slot in the editor content area for the block styl…
…es popover. We're also reverting changes from the previous commit, where we removed the overflow scroll on the sidebar. In order to position the preview correctly we need to keep an eye on the scroll top value of the content area.
Configuration menu - View commit details
-
Copy full SHA for 71fcad7 - Browse repository at this point
Copy the full SHA 71fcad7View commit details -
Fixing z-index to have the same z-index as the sidebar.
Using useLayoutEffect for setting the scrollTop.
Configuration menu - View commit details
-
Copy full SHA for bf66057 - Browse repository at this point
Copy the full SHA bf66057View commit details -
Using lodash debounce so we can cancel the debounce when needed.
Also hiding preview when mousing out of the preview container.
Configuration menu - View commit details
-
Copy full SHA for 51319b0 - Browse repository at this point
Copy the full SHA 51319b0View commit details