Skip to content

Commit

Permalink
Fixing class names and making look similar to disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Mar 5, 2020
1 parent 91b9547 commit 75451fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
font-style: italic;
}

.globalFilterItem-isInvalid {
text-decoration: none;

.globalFilterLabel__value {
color: $euiColorDanger;
font-weight: $euiFontWeightBold;
}
}

.globalFilterItem-isPinned {
position: relative;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.globalFilterEditor__fieldInput {
max-width: $euiSize * 13;
}

.filterError .filterValue {
color: $euiColorDanger;
font-weight: bold;
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function FilterLabel({ filter, valueLabel }: Props) {
);

const getValue = (text?: string) => {
return <span className="filterValue">{text}</span>;
return <span className="globalFilterLabel__value">{text}</span>;
};

if (filter.meta.alias !== null) {
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/data/public/ui/filter_bar/filter_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ class FilterItemUI extends Component<Props, State> {
const classes = classNames(
'globalFilterItem',
{
'globalFilterItem-isDisabled': disabled,
'globalFilterItem-isDisabled': disabled || hasError,
'globalFilterItem-isInvalid': hasError,
'globalFilterItem-isPinned': isFilterPinned(filter),
'globalFilterItem-isExcluded': negate,
},
this.props.className,
hasError ? 'filterError' : ''
this.props.className
);

const badge = (
Expand Down

0 comments on commit 75451fb

Please sign in to comment.