Repository navigation
Conversation
HromasDev
force-pushed
the
fix/banner-subtitle-color-9935
branch
from
November 4, 2026 19:18
c113a7e to
352ac1b
Compare
| .subtitle, | ||
| .extraSubtitle { | ||
| opacity: 0.72; | ||
| color: color-mix(in srgb, currentColor 72%, transparent); |
Contributor
There was a problem hiding this comment.
color-mix не проходит по списку поддерживаемых браузеров
Author
There was a problem hiding this comment.
Спасибо, переделал (14687fa): в mode="image" цвет текста фиксированный, поэтому приглушение выражено как color: rgba(255,255,255,0.72) + opacity: 1 — рендер для обычного текста попиксельно идентичен прежнему, ссылки внутри subtitle больше не гасятся.
Для остальных mode оставил прежний opacity: 0.72: там цвет — токен темы, и без color-mix / relative color syntax (оба вне browserslist) аналогичной замены через color нет. Если для них тоже нужен фикс — вижу путь через альфа-варианты токенов в дизайн-системе, готов сделать.
HromasDev
force-pushed
the
fix/banner-subtitle-color-9935
branch
from
November 5, 2026 15:55
352ac1b to
14687fa
Compare
HromasDev
marked this pull request as ready for review
November 5, 2026 19:04
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
subtitleв снапшотах нет — добавлять не стал, чтобы не расширять скоупОписание
В
Banner(заметнее всего приmode="image") контент внутриsubtitle/extraSubtitleстановился прозрачным целиком: правилоopacity: 0.72применялось к боксу и гасило всё поддерево, включая вложенные элементы со своим цветом — например,Link.В
mode="image"цвет текста фиксированный и не зависит от темы (color_text_primary_invariably/color_text_contrast— всегда белый), поэтому приглушение выражено через цвет с альфой:opacity: 0.72для остальных mode оставлено без изменений — там цвет является токеном темы, и замены черезcolorбез выхода за пределы .browserslistrc (color-mixне поддерживается в Safari 15) нет. Если такой фикс нужен и для них — вижу путь через альфа-варианты токенов, готов сделать в этом же PR.Изменения
mode="image"(иinverted)subtitle/extraSubtitle—color: rgba(255, 255, 255, 0.72)+opacity: 1вместо боксовогоopacity: 0.72.Release notes
subtitleиextraSubtitleвmode="image".