Background
Similar to the approach in Vector in https://phabricator.wikimedia.org/T366515, we want to use the codex link mixin in Minerva
User story
- As a mobile user I want the link styles to be consistent with wikimedia experiences
Requirements
- There should be no visual change to unvisited links
- There should be no visual change to self links
- There should be no visual change to external links
- There should be no visual change to focused links
- There should be no visual change to red links
- There should be no visual change to hovered linked
- There should be no visual change to visited links
- There shouldn't be a large increase in bundlesize with this change.
- There should be no visual changes with this change
- The following custom link variables are removed and favor of codex styles
@color-link @color-link--visited @color-link--active @color-link-new @color-link-new--visited @color-link-external @color-link-external--visited @color-link-external--active
- Reevaluate the need for 'content-links' module
Design
- considering minerva is already using codex variables, there should be no visual changes
Communication criteria - does this need an announcement or discussion?
- no
Derived Requirement
Ensure that link styles in the Minerva skin are consistent with Wikimedia experiences by using the Codex link mixin. There should be no visual changes to any type of links, and custom link variables should be removed in favor of Codex styles without significantly increasing the bundle size.
BDD
Feature: Consistent link styles in Minerva using Codex link mixin
Scenario: Ensure link styles in Minerva are consistent and unchanged after applying Codex link mixin
Given the user is browsing in the Minerva skin When the Codex link mixin is applied Then there should be no visual change to unvisited links And there should be no visual change to self-links And there should be no visual change to external links And there should be no visual change to focused links And there should be no visual change to red links And there should be no visual change to hovered links And there should be no visual change to visited links And the bundle size increase should be minimal
Test Steps
Test Case 1: Ensure no visual changes to link styles in Minerva after applying Codex link mixin
Browse a page using the Minerva skin.
Observe the unvisited links.
AC1: Confirm that there is no visual change to unvisited links.
Observe the self-links.
AC2: Confirm that there is no visual change to self-links.
Observe external links.
AC3: Confirm that there is no visual change to external links.
Focus on a link.
AC4: Confirm that there is no visual change to focused links.
Observe red links.
AC5:* Confirm that there is no visual change to red links.
Hover over a link.
AC6: Confirm that there is no visual change to hovered links.
Visit a link and observe the visited link color.
AC7:** Confirm that there is no visual change to visited links.
Test Case 2: Ensure there is no significant increase in bundle size after the Codex link mixin is applied
Check the bundle size before and after applying the Codex link mixin.
AC8: Confirm that the bundle size increase is minimal.
Test Case 3: Ensure that custom link variables are removed in favor of Codex styles
Review the stylesheet.
AC9: Confirm that the following custom link variables are removed:
@color-link
@color-link--visited
@color-link--active
@color-link-new
@color-link-new--visited
@color-link-external
@color-link-external--visited
@color-link-external--active








