Skip to content

Implement link text color as a stand-alone ReactProp in Android#1106

Closed
mkevins wants to merge 6 commits intoissue/697_change_color_of_text_and_linksfrom
issue/697_change_color_of_text_and_links_android_stand_alone_link_color_prop
Closed

Implement link text color as a stand-alone ReactProp in Android#1106
mkevins wants to merge 6 commits intoissue/697_change_color_of_text_and_linksfrom
issue/697_change_color_of_text_and_links_android_stand_alone_link_color_prop

Conversation

@mkevins
Copy link
Copy Markdown
Contributor

@mkevins mkevins commented Jun 10, 2019

This implements the Android side of this PR: #1086

This work is based on and supersedes @marecar3's work in this PR: #1101 but the changes on the Gutenberg side for that PR are no longer necessary for this PR. This PR's Gutenberg companion PR is the same as its target: WordPress/gutenberg#16016.

This PR will also need a new Aztec release after this Aztec PR is merged: wordpress-mobile/AztecEditor-Android@26aaa61, so that the build.gradle can reference a tag, rather than a hash.

To test:

Follow testing steps here: #1086 (comment).

Optionally, change the values temporarily here: https://github.com/wordpress-mobile/gutenberg-mobile/pull/1086/files#diff-7a9f35e48834f298dc343aeea78d0778R99 to something that stands out (like #ff0000) and see that the changes take effect.

@mkevins mkevins added this to the v1.7 milestone Jun 10, 2019
@daniloercoli
Copy link
Copy Markdown
Contributor

Reporting here my finding already discussed in a Slack convo.

Tested Android 9/Samsung S9 and on Android 7.1/Nexus 5X:

  • Start the demo content
  • The links does't have the default color
  • Links do have the correct color after a repaint of the screen
  • See the video here: https://cloudup.com/crj_sb6qMDD

(Note that links turned red, because I've set that color that stands out as default for links).

@mkevins
Copy link
Copy Markdown
Contributor Author

mkevins commented Jun 11, 2019

This PR has been superseded by a hard-coded solution: #1109 since the stand-alone prop has inconsistent results on some devices (on some devices, the color / style changes require an additional repaint to take effect).

@mkevins mkevins removed this from the v1.7 milestone Jun 11, 2019
@mkevins mkevins self-assigned this Jun 11, 2019
@marecar3
Copy link
Copy Markdown
Contributor

Thanks @mkevins, I will close this one.

@marecar3 marecar3 closed this Jun 11, 2019
@SergioEstevao SergioEstevao deleted the issue/697_change_color_of_text_and_links_android_stand_alone_link_color_prop branch November 8, 2019 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants