Hi, I would like to ask your opinion about a small modification that I think
should be done. Maybe it is not the right choice, you tell me....
As I understand it, when we add a bead is because we want to establish a
certain behavior and not leave it to chance.
Currently the style assigned by the TextAlign bead [1] does not take precedence
over the component's own style [2], shouldn't it prevail?
[1] (_text.sass)
.alignTextLeft
text-align: left
.alignTextRight
text-align: right
.alignTextCenter
text-align: center
[2]
https://drive.google.com/file/d/1n7XbXj_bBEDWWZBOOVmRAFvWb4fHhvaL/view?usp=sharing
The modification would be very simple, add "!important":
.alignTextLeft
text-align: left !important
.alignTextRight
text-align: right !important
.alignTextCenter
text-align: center !important
How do you see it? Any other more convenient option?
Thx
Hiedra
De: Maria Jose Esteve <[email protected]>
Enviado el: domingo, 20 de febrero de 2022 3:21
Para: [email protected]
Asunto: Jewel TextAlign bead does not have priority
Hi, quiero pedir vuestra opinión sobre una pequeña modificación que creo que se
debería realizar. Tal vez no sea la opción correcta, vosotros me diréis...
Tal y como yo lo entiendo, cuando añadimos un bead es porque queremos
establecer un determinado comportamiento y no dejarlo al azar.
Actualmente el estilo asignado por el bead TextAlign [1] no tiene prioridad
sobre el propio estilo del componente [2], ¿No debería prevalecer?
[1] (_text.sass)
.alignTextLeft
text-align: left
.alignTextRight
text-align: right
.alignTextCenter
text-align: center
[2]
[cid:[email protected]]
La modificación sería muy simple, añadir "!important":
.alignTextLeft
text-align: left !important
.alignTextRight
text-align: right !important
.alignTextCenter
text-align: center !important
¿Cómo lo veis? ¿alguna otra opción más conveniente?
Thx.
Hiedra