Skip to content

Commit

Permalink
fix(TDOPS-5081): fix FilterBar in VList having wrong style on hover (#…
Browse files Browse the repository at this point in the history
…4858)

* fix(TDOPS-5081): fix FilterBar in VList having wrong style on hover

* fix test
  • Loading branch information
Gbacc authored Aug 30, 2023
1 parent 665f624 commit 72b95c8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-shrimps-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/react-components': patch
---

TDOPS-5081 - Fixed FilterBar in VList header having wrong style on hover
3 changes: 1 addition & 2 deletions packages/components/src/FilterBar/FilterBar.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,11 @@ export default function FilterBar(props) {
return (
<Action
id={props.id}
className={props.className}
className={classNames(props.className, theme['button-docked'])}
onClick={props.onToggle}
label={t('LIST_FILTER_TOGGLE', { defaultValue: 'Toggle filter' })}
hideLabel
icon="talend-search"
bsStyle="link"
data-feature={props['data-feature']}
tooltipPlacement={props.tooltipPlacement}
role="search"
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/FilterBar/FilterBar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ $tc-filter-bar-width: 250px !default;
}
}

.button-docked {
color: tokens.$coral-color-neutral-icon-weak;
}

@keyframes reveal {
0% {
opacity: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`TextFilter should render text filter component 1`] = `
<button
aria-describedby="42"
aria-label="Toggle filter"
class="btn-icon-only btn btn-link"
class="theme-button-docked btn-icon-only btn btn-default"
id="myTextFilter"
role="search"
type="button"
Expand Down

0 comments on commit 72b95c8

Please sign in to comment.