2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/spec/system/page_objects
Kris bb386fcfa7
DEV: use classes to style hidden post history revision (#38159)
Reported here:
https://meta.discourse.org/t/understanding-opacity-in-hidden-revisions/397345

We're currently using `nth-of-type` selectors to reduce the opacity of
hidden revisions in the history modal... but these can be fragile and
are prone to regression if we change anything in the DOM. Adding class
names provides more predictable targets — this adds `--previous` and
`--current` and fixes the misplaced style.

Before (title of current revision also has reduced opacity)
<img width="2212" height="710" alt="image"
src="https://github.com/user-attachments/assets/5cd746ca-3bc8-4c3f-b6a6-aac525d3e0a0"
/>


After (only the hidden revision has the opacity reduced)
<img width="2292" height="830" alt="image"
src="https://github.com/user-attachments/assets/c5eb1731-2d3c-4d5c-9905-c8c8b9b7a33d"
/>
2026-03-03 09:58:03 -05:00
..
components DEV: follow-up localization spec fix (#38090) 2026-02-26 17:46:27 +00:00
modals DEV: use classes to style hidden post history revision (#38159) 2026-03-03 09:58:03 -05:00
pages UX: Display interpolation keys as interactive pills in admin editors (#37254) 2026-02-27 21:21:26 +01:00
cdp.rb DEV: Add client settled checks for system tests (#35230) 2025-10-10 11:03:18 +08:00