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

Style quotes in the mobile app #15990

Merged
merged 4 commits into from
Jun 5, 2019
Merged

Style quotes in the mobile app #15990

merged 4 commits into from
Jun 5, 2019

Conversation

SergioEstevao
Copy link
Contributor

@SergioEstevao SergioEstevao commented Jun 4, 2019

Description

This PR changes the BlockQuotation component to style the children element that has the citation identifier.

This allows us to set the space between the quote and citation and also to set a smaller font size.

How has this been tested?

This can be tested on GB mobile using this PR: wordpress-mobile/gutenberg-mobile#1067

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.

@SergioEstevao SergioEstevao added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Jun 4, 2019
@SergioEstevao SergioEstevao added this to the 5.9 (Gutenberg) milestone Jun 4, 2019
@SergioEstevao SergioEstevao requested a review from koke June 4, 2019 21:43
@SergioEstevao SergioEstevao changed the title tyle quotes Style quotes in the mobile app Jun 4, 2019
/**
* Internal dependencies
*/
import styles from './style.scss';

export const BlockQuotation = ( props ) => {
const newChildren = Children.map( props.children, ( child ) => {
if ( child && child.props.identifier === 'citation' ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious about why you need to test for child, is there any chance of that being null/undefined?

@SergioEstevao
Copy link
Contributor Author

SergioEstevao commented Jun 5, 2019 via email

@SergioEstevao SergioEstevao merged commit 0f2b948 into master Jun 5, 2019
@SergioEstevao SergioEstevao deleted the rnmobile/style_quotes branch June 5, 2019 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants