Skip to content

Commit

Permalink
New: Additional tooltips for icon buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
stevietv committed Oct 10, 2023
1 parent 732c2fe commit 8c07f0d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/Components/Modal/ModalContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import Icon from 'Components/Icon';
import Link from 'Components/Link/Link';
import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import styles from './ModalContent.css';

function ModalContent(props) {
Expand All @@ -28,6 +29,7 @@ function ModalContent(props) {
<Icon
name={icons.CLOSE}
size={18}
title={translate('Close')}
/>
</Link>
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/Components/Page/Header/PageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class PageHeader extends Component {
aria-label={translate('Donate')}
to="https://sonarr.tv/donate.html"
size={14}
title={translate('Donate')}
/>
<PageHeaderActionsMenuConnector
onKeyboardShortcutsPress={this.onOpenKeyboardShortcutsModal}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function PageHeaderActionsMenu(props) {
<MenuButton className={styles.menuButton} aria-label="Menu Button">
<Icon
name={icons.INTERACTIVE}
title={translate('Menu')}
/>
</MenuButton>

Expand Down
3 changes: 3 additions & 0 deletions frontend/src/Episode/EpisodeSearchCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import IconButton from 'Components/Link/IconButton';
import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import EpisodeDetailsModal from './EpisodeDetailsModal';
import styles from './EpisodeSearchCell.css';

Expand Down Expand Up @@ -50,11 +51,13 @@ class EpisodeSearchCell extends Component {
name={icons.SEARCH}
isSpinning={isSearching}
onPress={onSearchPress}
title={translate('AutomaticSearch')}
/>

<IconButton
name={icons.INTERACTIVE}
onPress={this.onManualSearchPress}
title={translate('InteractiveSearch')}
/>

<EpisodeDetailsModal
Expand Down

0 comments on commit 8c07f0d

Please sign in to comment.