Skip to content

Commit

Permalink
Filter edit icon component replaced with Font Awesome (#8600)
Browse files Browse the repository at this point in the history
* replaced!

* added role to the FA image/button

* adding tabindex.

* capitalization of tabIndex matters. I'll have another cup of coffee now.

* added newine at end of file, added stylelint rule to track this.

* re-removing these files after merge conflict resolution.
  • Loading branch information
rusackas authored and dpgaspar committed Nov 27, 2019
1 parent 0443487 commit f355548
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 72 deletions.
3 changes: 2 additions & 1 deletion superset/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@
},
"stylelint": {
"rules": {
"block-opening-brace-space-before": "always"
"block-opening-brace-space-before": "always",
"no-missing-end-of-source-newline": "never"
}
}
}
42 changes: 0 additions & 42 deletions superset/assets/src/components/FilterEditIcon.jsx

This file was deleted.

26 changes: 0 additions & 26 deletions superset/assets/src/components/FilterEditIcon.less

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import PropTypes from 'prop-types';
import { t } from '@superset-ui/translation';
import { isEmpty } from 'lodash';

import FilterEditIcon from '../../components/FilterEditIcon';

const propTypes = {
label: PropTypes.string.isRequired,
values: PropTypes.array.isRequired,
Expand All @@ -48,7 +46,12 @@ export default function FilterIndicatorTooltip({
</div>

{clickIconHandler && (
<FilterEditIcon clickIconHandler={clickIconHandler} />
<i
className="fa fa-pencil filter-edit"
onClick={clickIconHandler}
role="button"
tabIndex="0"
/>
)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
}

.filter-edit {
cursor: pointer;
position: absolute;
top: 4px;
right: 0;
Expand Down

0 comments on commit f355548

Please sign in to comment.