-
Notifications
You must be signed in to change notification settings - Fork 327
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
Set display:block on main
wrapper
#863
Conversation
src/objects/_main-wrapper.scss
Outdated
@@ -19,6 +19,8 @@ | |||
@mixin govuk-main-wrapper { | |||
@include govuk-responsive-padding(6, "top"); | |||
@include govuk-responsive-padding(6, "bottom"); | |||
// IE11 supports `main` but doesn't set it to block without HTML5shiv |
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.
As far as I know html5shiv isn't involved here - IE11 does support the <main>
element 'natively', it's just not styled correctly. The shiv is only invoked for Internet Explorer 6-9 according to their readme.
@@ -23,6 +23,11 @@ | |||
|
|||
🔧 Fixes: | |||
|
|||
- Apply `display:block` to `.govuk-main-wrapper` |
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.
If you're intending to add a line-break here, you need to leave a blank line. At the minute it wraps onto one line and reads like this:
Apply
display:block
to.govuk-main-wrapper
In IE11main
element is set todisplay:inline
so padding an margins aren't applied.
Also, should be and instead of an.
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.
updated
Because the main element is not recognized – meaning it's not defined in IE's default style sheet, so it uses CSS initial value, which is inline.
7ded723
to
3755a98
Compare
3755a98
to
2f9b437
Compare
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.
👍
This worries me, I would have thought this would have been fixed by the HTML5 shiv? |
Because the main element is not recognised – meaning it's not defined in IE's default style sheet,
so it uses CSS initial value, which is inline.
Fixes: #862