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

[Discover] Hide the whole filter div instead of just the icons #11819

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 0 additions & 4 deletions src/core_plugins/kibana/public/discover/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@
}
}

.discover-table-row--highlight td {
background-color: #E2F1F6;
}

.shard-failures {
color: @discover-shard-failures-color;
background-color: @discover-shard-failures-bg !important;
Expand Down
16 changes: 9 additions & 7 deletions src/ui/public/doc_table/doc_table.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ doc-table {

.table-cell-filter {
position: absolute;
background-color: @panel-bg;
white-space: nowrap;
right: 0;
}
Expand All @@ -53,6 +52,13 @@ doc-table {
}
}

.discover-table-row--highlight {
td,
.docTableRowFilterButton {
background-color: #E2F1F6;
}
}

.loading {
opacity: @loading-opacity;
}
Expand All @@ -74,18 +80,14 @@ doc-table {
*/
.docTableRowFilterButton {
appearance: none;
background-color: transparent;
background-color: @panel-bg;
Copy link
Contributor

Choose a reason for hiding this comment

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

I would also add this rule:

  padding: 0 3px;

and remove this rule:

  & + & {
    margin-left: 5px;
  }

This way we can avoid a transparent gap between the buttons.

border: none;
padding: 0;
padding: 0 3px;
font-size: 14px;
line-height: 1; /* 1 */
display: inline-block;
opacity: 0; /* 2 */

& + & {
margin-left: 5px;
}

&:focus {
opacity: 1; /* 3 */
}
Expand Down