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

Include icon in documentation for MediaPlaceholder #15585

Merged
merged 2 commits into from
May 15, 2019

Conversation

LeonBlade
Copy link
Contributor

Description

Just adds icon to the README.

How has this been tested?

N/A

Screenshots

N/A

Types of changes

Simple README tweak.

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.

@youknowriad youknowriad added [Type] Developer Documentation Documentation for developers Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code labels May 13, 2019
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.

Hi @LeonBlade, thank you for your contribution. I left some comments but overall the change looks good.

@@ -65,6 +65,13 @@ Class name added to the placeholder.
- Type: `String`
- Required: No

### icon

Dashicon to display left of the title.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can link to the Dashicon docs https://developer.wordpress.org/resource/dashicons/ and refer that a normal WordPress component could also be passed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I've gone ahead and referenced the docs and the normal component as well, specifically mentioning BlockIcon, as I've seen it being used in other parts of Gutenberg already for MediaPlaceholder.

@LeonBlade
Copy link
Contributor Author

I've amended the docs to include a link to Dashicons which will better explain what to specify. I've also included mention of the other possible argument being a WPComponent.

Copy link
Member

@mkaz mkaz left a comment

Choose a reason for hiding this comment

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

Looks good with changes incorporated 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants