Steps to replicate the issue (include links if applicable):
- Open an article for example open Tim Berners-Lee article
- Open a link in that article for example open World Wide Web
- Return to the anchor article (i.e. return to the article Tim Berners-Lee)
- Now hover on the Word Wide Web link
- Move move into the page preview itself so you hare hovering over the summary text.
What happens?:
The summary text color changes to blue.
What should have happened instead?:
No color change is needed when hovering.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Windows, Chrome, Firefox, Opera, Edge etc.
Confirmed in Firefox and Chrome
Other information (browser name/version, screenshots, etc.):
Here is a screenshot of the problem:
Debugging information can be found here:
https://github.com/wikimedia/mediawiki-extensions-Popups?tab=readme-ov-file#debugging
The fix should be a simple case of adding the following rule:
a.mwe-popups-extract:hover {
color: inherit;
}OR
Strengthening the existing .mwe-popups .mwe-popups-extract selector to .mwe-popups a.mwe-popups-extract
Requirement
Ensure that the summary text in page previews does not change color when the linked article has been previously visited. The text should maintain a consistent color regardless of the link’s visited status.
BDD
Feature: Consistent text color in page previews for visited links
Scenario: Text color remains unchanged when hovering over a page preview of a visited link
Given a user has previously visited an article
When the user hovers over the link to that article and moves the cursor into the page preview
Then the summary text color in the page preview should remain consistent and not change
Scenario: Text color remains unchanged for unvisited links
Given a user has not visited an article
When the user hovers over the link to that article and moves the cursor into the page preview
Then the summary text color in the page preview should remain consistent and not changeTest Steps
Test Case 1: Verify text color does not change for visited links
- Open the Tim Berners-Lee article on Wikipedia.
- Click on the World Wide Web link to visit that article.
- Use the browser’s back button to return to the Tim Berners-Lee article.
- Hover over the World Wide Web link to trigger the page preview.
- Move the cursor into the page preview, hovering over the summary text.
- Confirm that the summary text color does not change.
- AC1: The summary text color remains consistent for visited links.
Test Case 2: Verify text color does not change for unvisited links
- Open the Tim Berners-Lee article on Wikipedia.
- Identify a link to an article that you have not visited before.
- Hover over the link to trigger the page preview.
- Move the cursor into the page preview, hovering over the summary text.
- Confirm that the summary text color does not change.
- AC2: The summary text color remains consistent for unvisited links.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T382142#10537542 |
| 2 | ✅ | T382142#10537542 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T382142#10542514 |
| 2 | ✅ | T382142#10542514 |


