Moin:
Allerdings wird auch dem Titel des Themas auf der rechten Seite eine Deckkraft hinzugefügt, nicht aber dem Inhalt. Das verstehe ich nicht. Ich würde erwarten, dass es entweder zu beiden Elementen oder zu keinem hinzugefügt wird. Ist das beabsichtigt?
Das scheint nicht beabsichtigt zu sein, wir verwenden hier einige fragile CSS-Selektoren (nth-of-type), daher scheint es, dass wir den Stil nur an Stellen anwenden, an denen wir es nicht sollten. Die Lösung besteht darin, die Stile auf explizite Klassennamen anzuwenden … dies wird hier durchgeführt:
main ← dev-post-history-revision-classes
opened 09:04PM - 02 Mar 26 UTC
Reported here: https://meta.discourse.org/t/understanding-opacity-in-hidden-revi… sions/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" />
4 „Gefällt mir“