You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvements for the color contrast check against default theme colors. #6484
Hi @afercia, what happens is that by default the background of the paragraph is rgba( 0, 0, 0, 0) (totally transparent), we can not know what is, in fact, the background color. The theme may even set an image as background and we can not compute the right color. A block can also set a backrgound for nested paragraphs e.g: cover image. If the theme sets a background color e.g: white and correctly loads the styles, we will be able to shown warnings. But if no changes happen we can not make sure if the contrast is right or not.
For the text color, we show warning because at the start it is not transparent, by default we set a color.
Hi @jorgefilipecosta thanks, I understand a bit better now. Then if there are no reliable ways to detect the background color when blocks are transparent and the theme doesn't set a background color, please do feel free to close this issue,
Unfortunately, it looks like in fact, right now we don't have a reliable way to detect what the background color (or colors) will end up being. So I'm closing this issue, for now, thank you for referring this issue.
Activity
jorgefilipecosta commentedon Apr 30, 2018
Hi @afercia, what happens is that by default the background of the paragraph is rgba( 0, 0, 0, 0) (totally transparent), we can not know what is, in fact, the background color. The theme may even set an image as background and we can not compute the right color. A block can also set a backrgound for nested paragraphs e.g: cover image. If the theme sets a background color e.g: white and correctly loads the styles, we will be able to shown warnings. But if no changes happen we can not make sure if the contrast is right or not.
For the text color, we show warning because at the start it is not transparent, by default we set a color.
afercia commentedon Apr 30, 2018
Hi @jorgefilipecosta thanks, I understand a bit better now. Then if there are no reliable ways to detect the background color when blocks are transparent and the theme doesn't set a background color, please do feel free to close this issue,
jorgefilipecosta commentedon Apr 30, 2018
Unfortunately, it looks like in fact, right now we don't have a reliable way to detect what the background color (or colors) will end up being. So I'm closing this issue, for now, thank you for referring this issue.
afercia commentedon May 1, 2018
For some background, see #5658 (comment)