Addons-frontend: The View Site links on Android have the same color as the rest of the text

Created on 20 Sep 2019  路  17Comments  路  Source: mozilla/addons-frontend

STR:

  1. On an Android device the links <a href="https://youtu.be/w_lCi8U49mY">Click the following link </a> or <a href="https://support.mozilla.org/en-US/kb/recommended-extensions-program">Visit SUMO </a>

could be more visible if they'd look like on Desktop

Android

Links are black

Desktop

Links on desktop

This is reproducible on AMO dev with Android 8.0.0
Please note links without HTML format are interpreted as text.

ux good first bug maybe good first bug android p4 verified fixed

All 17 comments

I don't know if it is our CSS or platform-specific.

@ioanarusiczki @willdurand May I work on this issue?

@virgilt go for it!

@willdurand Thank you!

@willdurand I'm having trouble with this one. Trying to emulate it in Android Studio on my Linux machine, by following the docs https://mozilla.github.io/geckoview/contributor/geckoview-quick-start

Can't get past Bootstrap Gecko. Are there any chats or place with more information? This is my first time trying to work on Android.

@virgilt hey, so there is no need for Android Studio. This is a web app with an Android version, but this version is still web-based.

You can get started by following these instructions:

  • clone this repository
  • run yarn
  • run yarn amo:dev

Then you can browse: http://localhost:3000/en-US/android/

Note the "android" in the url. After that you should see the websitr with the yellow banner and the links that are not in blue.

I see it reproducible on MacOS too. - FF69

ah, good catch @ioanarusiczki. So I think it was intended to have grey color on links, but maybe not by default, I am not sure.

@bobsilverberg WDYT? It was introduced in https://github.com/mozilla/addons-frontend/pull/7364. I think we could remove the color on the links to keep the default style?

Screen Shot 2019-09-23 at 15 28 03

diff --git a/src/ui/components/Notice/styles.scss b/src/ui/components/Notice/styles.scss
index 1052e371c..47545702c 100644
--- a/src/ui/components/Notice/styles.scss
+++ b/src/ui/components/Notice/styles.scss
@@ -131,13 +131,7 @@
   }

   background-color: $notice-background-color;
-
-  &,
-  :link,
-  :hover,
-  :active {
-    color: $notice-link-color;
-  }
+  color: $notice-link-color;
 }

 .Notice-error {

@bobsilverberg WDYT? It was introduced in #7364. I think we could remove the color on the links to keep the default style?

Sure, that seems fine. I don't think this colour difference was intentional.

@willdurand Do you need me to do anything further?

@virgilt would you like to update your patch with the one I provided above?

@willdurand sure, no problem!

@willdurand Just want to clarify that I should remove the previous code I had written correct?

yep, correct. thanks!

thanks for your work @virgilt

@willdurand @virgilt Looks good to me! Verified on AMO dev - Android 8.0

Links

Was this page helpful?
0 / 5 - 0 ratings