Skip to content
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

[CCR] IE and Screen reader accesibility #29731

Merged
merged 7 commits into from
Feb 4, 2019
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const updateFollowerIndex = (id, followerIndex) => (

/* Stats */
export const loadAutoFollowStats = () => (
httpClient.get(`${apiPrefix}/stats/auto-follow`).then(extractData)
httpClient.get(`${apiPrefix}/stats/auto_follow`).then(extractData)
);

/* Indices */
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/remote_clusters/public/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Import the EUI global scope so we can use EUI constants
@import 'ui/public/styles/_styling_constants';
@import './sections/remote_cluster_list/components/connection_status/index';

// Index management plugin styles

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.euiFlexGroup .euiFlexItem .remoteClustersConnectionStatus__message {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first two classes make the selector somewhat brittlene, since it will no longer take effect if we refactor ConnectionStatus to use a component other than EuiFlexGroup or if the EUI classnames change. Can we change this to just the single class? It's OK to use !important if you need to override what's being inherited; a comment will help make the rationale clearer.

/**
 * 1. Prevent inherited flexbox layout from compressing this element on IE.
 */
.remoteClustersConnectionStatus__message {
  flex-basis: auto !important; / * 1 */
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I went with !important first and then remember that other sass linting projects I worked on did not allow them. You know, preferences 😄 Ok will change

flex-basis: auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function ConnectionStatus({ isConnected }) {
{icon}
</EuiFlexItem>

<EuiFlexItem>
<EuiFlexItem className="remoteClustersConnectionStatus__message">
<EuiText>
{message}
</EuiText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports[`RemoteClusterTable renders a row for an API-defined remote cluster 1`]
</svg>
</div>
<div
class="euiFlexItem"
class="euiFlexItem remoteClustersConnectionStatus__message"
>
<div
class="euiText euiText--medium"
Expand Down Expand Up @@ -336,7 +336,7 @@ exports[`RemoteClusterTable renders a row with a tooltip for a remote cluster de
</svg>
</div>
<div
class="euiFlexItem"
class="euiFlexItem remoteClustersConnectionStatus__message"
>
<div
class="euiText euiText--medium"
Expand Down