Skip to content

Commit

Permalink
removing focus ring on click
Browse files Browse the repository at this point in the history
  • Loading branch information
happykoder committed Mar 4, 2021
1 parent 96cd8e2 commit a3ed8f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ActionList/components/Item/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {UnstyledLink} from '../../../UnstyledLink';
import {Badge} from '../../../Badge';
import {TextStyle} from '../../../TextStyle';
import styles from '../../ActionList.scss';
import {handleMouseUpByBlurring} from '../../../../utilities/focus';

export type ItemProps = ActionListItemDescriptor;

Expand Down Expand Up @@ -81,12 +82,12 @@ export function Item({
const textMarkup = <div className={styles.Text}>{contentMarkup}</div>;

const contentElement = (
<div className={styles.Content}>
<span className={styles.Content}>
{prefixMarkup}
{textMarkup}
{badgeMarkup}
{suffixMarkup}
</div>
</span>
);

const scrollMarkup = active ? <Scrollable.ScrollTo /> : null;
Expand All @@ -110,6 +111,7 @@ export function Item({
disabled={disabled}
aria-label={accessibilityLabel}
onClick={onAction}
onMouseUp={handleMouseUpByBlurring}
>
{contentElement}
</button>
Expand Down
1 change: 1 addition & 0 deletions src/components/Popover/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $content-max-width: rem(400px);
will-change: opacity;
opacity: 0;
transition: opacity duration() easing(in);
transform: translate3d(0, 0, 0);
}

.PopoverOverlay-entering {
Expand Down

0 comments on commit a3ed8f1

Please sign in to comment.