Skip to content

Conversation

adamelso
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

When the body element has the CSS rule text-transform: uppercase, this is also applied to the toolbar.
We could add a style to prevent that from happening but would mean the CSS is now writing rules for a framework's dev tools.

Given the information in the toolbar may be case-sensitive, best thing to prevent text transformations by explicitly declaring text-transform: none.

symfony-toolbar-very-shouty

@adamelso adamelso force-pushed the sf-toolbar-does-not-inherit-text-transform branch from 4a91c0b to 7a33800 Compare January 26, 2016 12:17
@adamelso adamelso changed the title [WebProfiler] Don't inherit CSS text-transform property for the toolbar. [WebProfilerBundle] Don't inherit CSS text-transform property for the toolbar. Jan 26, 2016
@fabpot
Copy link
Member

fabpot commented Jan 27, 2016

Thank you @adamelso.

fabpot added a commit that referenced this pull request Jan 27, 2016
…perty for the toolbar. (adamelso)

This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #17544).

Discussion
----------

[WebProfilerBundle] Don't inherit CSS text-transform property for the toolbar.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

When the `body` element has the CSS rule `text-transform: uppercase`, this is also applied to the toolbar.
We could add a style to prevent that from happening but would mean the CSS is now writing rules for a framework's dev tools.

Given the information in the toolbar may be case-sensitive, best thing to prevent text transformations by explicitly declaring `text-transform: none`.

![symfony-toolbar-very-shouty](https://cloud.githubusercontent.com/assets/5972864/12579702/cdaebcf4-c421-11e5-8300-e858f85beb26.png)

Commits
-------

fce0af0 [WebProfilerBundle] Don't inherit CSS text-transform property for the toolbar.
@fabpot fabpot closed this Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants