mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix canvas workpad focus state (#35015)
* Fix canvas workpad focus state * reset focus state for viz and top nav
This commit is contained in:
parent
d5c3cac6fc
commit
e5cabda964
5 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
<div class="kuiLocalMenu kbnTopNav__mainMenu" ng-if="kbnTopNav.menuItems.length">
|
||||
<button
|
||||
class="kuiLocalMenuItem {{menuItem.className}}"
|
||||
class="kuiLocalMenuItem kbn-resetFocusState {{menuItem.className}}"
|
||||
ng-repeat="menuItem in kbnTopNav.menuItems"
|
||||
aria-label="{{::menuItem.description}}"
|
||||
aria-haspopup="{{!menuItem.hasFunction}}"
|
||||
|
|
|
@ -114,7 +114,7 @@ input[type="checkbox"],
|
|||
// state. This is useful when you've already hand crafted your own
|
||||
// focus states in Kibana.
|
||||
:focus {
|
||||
&:not([class^="eui"]):not([class^="kbn-resetFocusState"]) {
|
||||
&:not([class^="eui"]):not(.kbn-resetFocusState) {
|
||||
@include euiFocusRing;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ class VisualizationChart extends React.Component<VisualizationChartProps> {
|
|||
|
||||
public render() {
|
||||
return (
|
||||
<div className="visChart__container" tabIndex={0} ref={this.containerDiv}>
|
||||
<div className="visChart__container kbn-resetFocusState" tabIndex={0} ref={this.containerDiv}>
|
||||
<p className="euiScreenReaderOnly">
|
||||
{this.props.vis.type.title} visualization, not yet accessible
|
||||
</p>
|
||||
|
|
|
@ -75,7 +75,7 @@ export class InteractiveWorkpadPage extends PureComponent {
|
|||
}
|
||||
}}
|
||||
data-test-subj="canvasWorkpadPage"
|
||||
className={`canvasPage ${className} canvasPage--isEditable`}
|
||||
className={`canvasPage kbn-resetFocusState ${className} canvasPage--isEditable`}
|
||||
data-shared-items-container
|
||||
style={{ ...pageStyle, ...animationStyle, height, width, cursor }}
|
||||
onKeyDown={onKeyDown}
|
||||
|
|
|
@ -19,7 +19,7 @@ export class StaticWorkpadPage extends PureComponent {
|
|||
key={pageId}
|
||||
id={pageId}
|
||||
data-test-subj="canvasWorkpadPage"
|
||||
className={`canvasPage ${className}`}
|
||||
className={`canvasPage kbn-resetFocusState ${className}`}
|
||||
data-shared-items-container
|
||||
style={{ ...pageStyle, ...animationStyle, height, width }}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue