-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for link color in containers (#34689)
* Remove important rule * Contain specificity of links rule using :where so themes can override it * Output styles before the element The reason for this is nested content such as: <group class="wp-element-1"> <p>Text with <link> and colors inherited from group</p> <p class="wp-element-2">Text with <link> and own colors</p> </group> The selectors for the link are - ".wp-element 1 a" => generated by the group - ".wp-element-2 a" => generated by the paragraph because they have the same specificity the latest will win. We need the styles to respect the DOM order of the elements that have them. <style .wp-element-1> <style .wp-element-2> <group ...>...</group>
- Loading branch information
Showing
4 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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