Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Remove custom tooltip delay on playerbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Apr 7, 2022
1 parent edb0ade commit aac06b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/player/PlayerBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ const PlayerBar = () => {
<FlexboxGrid.Item colspan={12} style={{ textAlign: 'center', verticalAlign: 'middle' }}>
<PlayerColumn center height="45px">
{/* Stop Button */}
<CustomTooltip text={t('Stop')} delay={1000}>
<CustomTooltip text={t('Stop')}>
<PlayerControlIcon
aria-label={t('Seek forward')}
role="button"
Expand All @@ -483,7 +483,7 @@ const PlayerBar = () => {
/>
</CustomTooltip>
{/* Seek Backward Button */}
<CustomTooltip text={t('Seek backward')} delay={1000}>
<CustomTooltip text={t('Seek backward')}>
<PlayerControlIcon
aria-label={t('Seek backward')}
role="button"
Expand All @@ -501,7 +501,7 @@ const PlayerBar = () => {
/>
</CustomTooltip>
{/* Previous Song Button */}
<CustomTooltip text={t('Previous Track')} delay={1000}>
<CustomTooltip text={t('Previous Track')}>
<PlayerControlIcon
aria-label={t('Previous Track')}
role="button"
Expand All @@ -519,7 +519,7 @@ const PlayerBar = () => {
/>
</CustomTooltip>
{/* Play/Pause Button */}
<CustomTooltip text={t('Play/Pause')} delay={1000}>
<CustomTooltip text={t('Play/Pause')}>
<PlayerControlIcon
aria-label={t('Play')}
aria-pressed={player.status === 'PLAYING'}
Expand All @@ -537,7 +537,7 @@ const PlayerBar = () => {
/>
</CustomTooltip>
{/* Next Song Button */}
<CustomTooltip text={t('Next Track')} delay={1000}>
<CustomTooltip text={t('Next Track')}>
<PlayerControlIcon
aria-label={t('Next Track')}
role="button"
Expand All @@ -555,7 +555,7 @@ const PlayerBar = () => {
/>
</CustomTooltip>
{/* Seek Forward Button */}
<CustomTooltip text={t('Seek forward')} delay={1000}>
<CustomTooltip text={t('Seek forward')}>
<PlayerControlIcon
aria-label={t('Seek forward')}
role="button"
Expand Down

0 comments on commit aac06b4

Please sign in to comment.