Skip to content

Commit

Permalink
linting and rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Feb 3, 2020
1 parent 80b52f8 commit 4508f91
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
14 changes: 11 additions & 3 deletions packages/block-library/src/post-author/block-colors-selector.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@

/**
* WordPress dependencies
*/
import { Button, Dropdown, ToolbarGroup, SVG, Path } from '@wordpress/components';
import {
Button,
Dropdown,
ToolbarGroup,
SVG,
Path,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { DOWN } from '@wordpress/keycodes';

Expand Down Expand Up @@ -37,7 +42,10 @@ const ColorSelectorIcon = ( { style, className } ) => {
* @param {Object} colorControlProps colorControl properties.
* @return {*} React toggle button component.
*/
const renderToggleComponent = ( { TextColor, BackgroundColor } ) => ( { onToggle, isOpen } ) => {
const renderToggleComponent = ( { TextColor, BackgroundColor } ) => ( {
onToggle,
isOpen,
} ) => {
const openOnArrowDown = ( event ) => {
if ( ! isOpen && event.keyCode === DOWN ) {
event.preventDefault();
Expand Down
5 changes: 3 additions & 2 deletions packages/block-library/src/post-author/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package WordPress
*/

/**
/**
* Build an array with CSS classes and inline styles defining the colors
* which will be applied to the navigation markup in the front-end.
*
Expand Down Expand Up @@ -88,7 +88,8 @@ function post_author_build_css_font_sizes( $attributes ) {
/**
* Renders the `core/post-author` block on the server.
*
* @return string Returns the filtered post author for the current post wrapped inside "h6" tags.
* @param array $attributes Author block attributes.
* @return string Returns the rendered author block.
*/
function render_block_core_post_author( $attributes ) {
$post = gutenberg_get_post_from_context();
Expand Down

0 comments on commit 4508f91

Please sign in to comment.