-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Improved the design of the web debug toolbar #17109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1,3 +1,5 @@ | |||
{% set colors = { 'success': '#4F805D', 'warning': '#A46A1F', 'error': '#B0413E' } %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding a comment saying this should stay in sync with the variable defined in profiler.css.twig
(and having a similar comment there, so that both sides are warning people). I will avoid mistakes where only one of them is updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Done in 9335290. Thanks.
👍 |
1 similar comment
👍 |
Thank you @javiereguiluz. |
This PR was squashed before being merged into the 2.8 branch (closes #17109). Discussion ---------- Improved the design of the web debug toolbar | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This PR contains three little improvements: ## 1) Icon size Somehow, the size of the icons wasn't limited properly. This makes them appear too big and unaligns text vertically: ### Before  ### After  ## 2) Status blocks It's very common to have single-digit and double-digit status blocks in some panels. Now they show a different width:   Now we set a minimum-width that looks good for single and double digit values:   Although this solution doesn't solve the case when some block displays three digits, I think we can safely ignore that edge case. ## 3) Colors The green/yellow/red colors of the toolbar were different from the green/yellow/red colors of the profiler. The reason is that we designed the toolbar first and separately from the profiler. The second (minor) issue is that green and yellow didn't have enough contrast (they didn't pass the WCAG accessibility check). So I propose to slightly change the green and yellow colors and to use the same colors in the toolbar and the profiler. ### Toolbar Before  ### Toolbar After  ### Profiler Before    ### Profiler After    The new colors pass the accessibility requirements:    Commits ------- 9859125 Improved the design of the web debug toolbar
This PR contains three little improvements:
1) Icon size
Somehow, the size of the icons wasn't limited properly. This makes them appear too big and unaligns text vertically:
Before
After
2) Status blocks
It's very common to have single-digit and double-digit status blocks in some panels. Now they show a different width:
Now we set a minimum-width that looks good for single and double digit values:
Although this solution doesn't solve the case when some block displays three digits, I think we can safely ignore that edge case.
3) Colors
The green/yellow/red colors of the toolbar were different from the green/yellow/red colors of the profiler. The reason is that we designed the toolbar first and separately from the profiler. The second (minor) issue is that green and yellow didn't have enough contrast (they didn't pass the WCAG accessibility check).
So I propose to slightly change the green and yellow colors and to use the same colors in the toolbar and the profiler.
Toolbar Before
Toolbar After
Profiler Before
Profiler After
The new colors pass the accessibility requirements: