{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/27658","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/27658/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/27658/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/27658/events","html_url":"https://github.com/symfony/symfony/issues/27658","id":334120258,"node_id":"MDU6SXNzdWUzMzQxMjAyNTg=","number":27658,"title":"Not wanted Web Profiler Toolbar link color css override","user":{"login":"Soullivaneuh","id":1698357,"node_id":"MDQ6VXNlcjE2OTgzNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1698357?v=4","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T15:00:38Z","updated_at":"2018-06-20T15:07:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Symfony version(s) affected**: v4.0.11\r\n\r\n**Description**  \r\n\r\nIf I put some CSS rules with a body classes, it will apply on the web profiler toolbar.\r\n\r\n**How to reproduce**  \r\n\r\n```sass\r\nbody.logon {\r\n  a:not(.btn) {\r\n    color: map_get($project-colors, 'red');\r\n\r\n    &:hover {\r\n      text-decoration: underline;\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAnd create a template with `<body class=\"logon\">`\r\n\r\nYou will have something like this:\r\n\r\n![image](https://user-images.githubusercontent.com/1698357/41666607-2841a3de-74ab-11e8-88a6-1db10761caa9.png)\r\n\r\nI'm pretty sure it's related to the body class case, because I have another global color definition for `a` links and it does not affect the toolbar."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/398785760","html_url":"https://github.com/symfony/symfony/issues/27658#issuecomment-398785760","issue_url":"https://api.github.com/repos/symfony/symfony/issues/27658","id":398785760,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODc4NTc2MA==","user":{"login":"stof","id":439401,"node_id":"MDQ6VXNlcjQzOTQwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/439401?v=4","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T15:07:49Z","updated_at":"2018-06-20T15:07:49Z","author_association":"MEMBER","body":"Well, you final selector is `body.logon a:not(.btn)`. That has a higher specificity than the rules defined in the WDT styles. So it wins over them.\r\n\r\nthe WDT being in your page, CSS rules will indeed impact them. I don't know of a way to isolate the WDT from your page (using an iframe to render the toolbar is likely to break things entirely)"}}
{"actor":{"display_login":"stof"}}