summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/dialogs/dialogs.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2025-08-27 11:53:31 +0000
committerTopi Reinio <topi.reinio@qt.io>2025-08-27 17:54:41 +0000
commit1da73da1a41e30880a8a4b3c02db004aaa63101e (patch)
tree0f984b3c910ff31e81be44ce656069d447bb67c1 /src/widgets/doc/snippets/dialogs/dialogs.cpp
parent2218c2acd103af059e712bfd2d04f5e2385fca61 (diff)
Doc: Adjust inline styling of .svg files
Previously, <style> elements were added to the SVG files in order to make them responsive to light/dark theme changes in the online documentation. For these two diagrams, the reuse of elements via <use> causes additional styling considerations; Browsers attach the cloned element(s) referenced by <use> under a separate 'shadow' DOM, making them inaccessible to normal CSS rule propagation. However, CSS inheritance still allows to control styling across the shadow DOM boundary. To fix, explicitly enable CSS inheritance of the `fill` and `stroke` attributes of copied elements, and apply theme-aware style to the referencing <use> element instead. Move the default `fill` and `stroke` attributes from the source elements into the <use> elements as well. This seems to fix CSS inheritance in Firefox. Amends 8643ae7a766b0f1c24d11d2dc64af6f23c307ad0. Pick-to: 6.10 Change-Id: I966c0a50500b86fc994476e85340d1171a5fc0eb Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/dialogs/dialogs.cpp')
0 files changed, 0 insertions, 0 deletions