light background colors became semi-transparent in v0.35, making them unreadable when they are stacked on top of other elements

Ouverte
#948 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
css
Domaine
frontend

Piste de recherche

The report compares the generated .bg-azure-lt CSS in versions 0.34 and 0.35, but does not identify the source file or a test. Start by searching the repository for .bg-azure-lt and checking how the light-color variables are defined and generated. Done means determining whether the changed opacity is unintended and documenting or testing the expected behavior for stacked rows.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

In my project I use the "Azure" SQLPage color in the last row of my table. I have noticed that there is a difference between behaviour between 0.34 and 0.35:
In 0.34, the css style assigned with my row is

.bg-azure-lt {
  --tblr-bg-opacity: 1;
  --tblr-text-opacity: 1;
  color: rgba(var(--tblr-azure-rgb),var(--tblr-text-opacity)) !important;
  background-color: rgba(var(--tblr-azure-lt-rgb),var(--tblr-bg-opacity)) !important;
}

which gives it a solid background color, while in 0.35 the css style is

.bg-azure-lt {
  color: color-mix(in srgb,var(--tblr-azure) calc(var(--tblr-text-opacity,1) * 100%),transparent) !important;
  background-color: color-mix(in srgb,var(--tblr-azure-lt) calc(var(--tblr-bg-opacity,1) * 100%),transparent) !important;
}

which results in a half-transparent background. Ofc this is irrelevant if the background behind the table row is 100% white, but if the row is sticky, then what happens is that two rows are rendered on top of each other.

I know very little CSS so I cannot understand if this is a bug or a feature... According to Firefox inspector, the --tblr-azure-lt is a color with alpha at 10% (90% transparency), --tblr-azure-lt-rgb is visually the same color but coded in RGB-only, no transparency applied to it.

So, the question is: is it normal that the behavior of the colors changed between 0.34 and 0.35? Is any one of those "correct" or are they both right in their own way?

Langage dominant
Rust
Étoiles
2.6k
Forks
175
Merge moyen
14 h 16 min
PR mergées (30 j)
43

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de sqlpage/SQLPage

Toutes les issues de sqlpage/SQLPage

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.