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

Fix example code in README.md #18158

Merged

Conversation

bastibeckr
Copy link
Contributor

As mentioned in #16916, it seems not to work to add "draggable" attribute directly to Dashicon. The example works when the Dashicon is wrapped in a div.

Description

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

As mentioned in WordPress#16916, it seems not to work to add "draggable" attribute directly to Dashicon. The example works when the Dashicon is wrapped in a div.
Copy link
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

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

I verified the problem in my tests and this PR fixes the issue 👍 Thank you for your contribution!

@@ -53,12 +53,13 @@ const MyDraggable = () => (
>
{
Copy link
Member

@jorgefilipecosta jorgefilipecosta Oct 29, 2019

Choose a reason for hiding this comment

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

This "{" and the content inside should be indented one more tab. I added a commit with this fix.

@gziolo gziolo added [Type] Developer Documentation Documentation for developers First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository labels Oct 29, 2019
@talldan talldan merged commit 5064a06 into WordPress:master Dec 3, 2019
@youknowriad youknowriad added this to the Gutenberg 7.1 milestone Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants