-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Replace role=main by main elements #12671
Conversation
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.
Nice! One small request.
src/ui/public/styles/base.less
Outdated
@@ -54,6 +54,10 @@ code { | |||
word-wrap: break-word; | |||
} | |||
|
|||
main { | |||
display: block; | |||
} |
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.
Can we move this to https://github.com/elastic/kibana/blob/master/ui_framework/components/_common_styles.scss and add a comment?
/**
* 1. Required for IE11.
*/
main {
display: block; /* 1 */
}
Jenkins, test this |
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.
🍀 Excellent!
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.
Oops I approved too soon! Found one small thing.
*/ | ||
main { | ||
display: block; /* 1 */ | ||
} |
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.
Oh actually, now that this is part of the UI Framework, we need to recompile and commit the CSS. Just run npm run uiFramework:start
to kick off compilation.
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.
Are you sure, this is still needed? Running the task (or also uiFramework:build
doesn't change any files managed by git. Do I need to copy the compiled files somewhere?
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.
Ah I think I should probably rename that task. npm run uiFramework:start
will recompile the compiled CSS, whereas uiFramework:build
will only build the documentation site.
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.
@cjcenizal I ran both of the tasks, none of them touches git managed files for me?
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 created timroes#1 for now. We can walk through the task when you're done with X-School to figure out what's going on. 😄
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.
Merged, and we figure out next week what's wrong with my buildsystem :D
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.
Approving after @cjcenizal's comments are addressed
Add compiled UI Framework CSS.
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.
🍰
Replace all
role="main"
bymain
elements as requested in #12632.Since we support IE11, the
display: block
formain
is still needed.Fixes #12632