Skip to content

Commit

Permalink
Hide decorative icons
Browse files Browse the repository at this point in the history
  • Loading branch information
rafawendel committed Mar 12, 2021
1 parent 888e056 commit d576ff7
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 27 deletions.
4 changes: 2 additions & 2 deletions client/app/components/groups/DetailsPageSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export default function DetailsPageSidebar({
<Sidebar.Menu items={items} selected={controller.params.currentPage} />
{canAddMembers && (
<Button className="w-100 m-t-5" type="primary" onClick={onAddMembersClick}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
Add Members
</Button>
)}
{canAddDataSources && (
<Button className="w-100 m-t-5" type="primary" onClick={onAddDataSourcesClick}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
Add Data Sources
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/queries/SchemaBrowser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function SchemaItem({ item, expanded, onToggle, onSelect, ...props }) {
<div {...props}>
{/* TODO: Replace with a button */}
<div className="table-name" onClick={onToggle}>
<i className="fa fa-table m-r-5" />
<i className="fa fa-table m-r-5" aria-hidden="true" />
<strong>
<span title={item.name}>{tableDisplayName}</span>
{!isNil(item.size) && <span> ({item.size})</span>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ export default function DatabricksSchemaBrowser({
onDropdownVisibleChange={setIsDatabaseSelectOpen}
placeholder={
<>
<i className="fa fa-database m-r-5" /> Database
<i className="fa fa-database m-r-5" aria-hidden="true" /> Database
</>
}>
{filteredDatabases.map(database => (
<Select.Option key={database}>
<i className="fa fa-database m-r-5" />
<i className="fa fa-database m-r-5" aria-hidden="true" />
{database}
</Select.Option>
))}
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/tags-control/TagsControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class TagsControl extends React.Component {
data-test="EditTagsButton">
{tags.length === 0 && (
<React.Fragment>
<i className="zmdi zmdi-plus m-r-5" />
<i className="zmdi zmdi-plus m-r-5" aria-hidden="true" />
Add tag
</React.Fragment>
)}
Expand Down
6 changes: 4 additions & 2 deletions client/app/pages/alert/AlertEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class AlertEdit extends React.Component {
<Title name={name} alert={alert} onChange={onNameChange} editMode>
<DynamicComponent name="AlertEdit.HeaderExtra" alert={alert} />
<Button className="m-r-5" onClick={() => this.cancel()}>
<i className="fa fa-times m-r-5" />
<i className="fa fa-times m-r-5" aria-hidden="true" />
Cancel
</Button>
<Button type="primary" onClick={() => this.save()}>
Expand All @@ -65,7 +65,9 @@ export default class AlertEdit extends React.Component {
<span className="sr-only">Saving...</span>
</>
) : (
<i className="fa fa-check m-r-5" />
<>
<i className="fa fa-check m-r-5" aria-hidden="true" />
</>
)}
Save Changes
</Button>
Expand Down
4 changes: 2 additions & 2 deletions client/app/pages/alert/AlertView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class AlertView extends React.Component {
<DynamicComponent name="AlertView.HeaderExtra" alert={alert} />
<Tooltip title={canEdit ? "" : "You do not have sufficient permissions to edit this alert"}>
<Button type="default" onClick={canEdit ? onEdit : null} className={cx({ disabled: !canEdit })}>
<i className="fa fa-edit m-r-5" />
<i className="fa fa-edit m-r-5" aria-hidden="true" />
Edit
</Button>
{menuButton}
Expand Down Expand Up @@ -111,7 +111,7 @@ export default class AlertView extends React.Component {
className="m-b-20"
message={
<>
<i className="fa fa-bell-slash-o" /> Notifications are muted
<i className="fa fa-bell-slash-o" aria-hidden="true" /> Notifications are muted
</>
}
description={
Expand Down
6 changes: 3 additions & 3 deletions client/app/pages/alert/components/AlertDestinations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class AlertDestinations extends React.Component {
showCount: true,
extraFooterContent: (
<>
<i className="fa fa-info-circle" /> Create new destinations in{" "}
<i className="fa fa-info-circle" aria-hidden="true" /> Create new destinations in{" "}
<Tooltip title="Opens page in a new tab.">
<Link href="destinations/new" target="_blank">
Alert Destinations
Expand Down Expand Up @@ -190,12 +190,12 @@ export default class AlertDestinations extends React.Component {
size="small"
className="add-button"
onClick={this.showAddAlertSubDialog}>
<i className="fa fa-plus f-12 m-r-5" /> Add
<i className="fa fa-plus f-12 m-r-5" aria-hidden="true" /> Add
</Button>
</Tooltip>
<ul>
<li className="destination-wrapper">
<i className="destination-icon fa fa-envelope" />
<i className="destination-icon fa fa-envelope" aria-hidden="true" />
<span className="flex-fill">{currentUser.email}</span>
<EmailSettingsWarning className="destination-warning" featureName="alert emails" mode="icon" />
{!mailSettingsMissing && (
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/dashboards/DashboardList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function DashboardList({ controller }) {
actions={
currentUser.hasPermission("create_dashboard") ? (
<Button block type="primary" onClick={() => CreateDashboardDialog.showModal()}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New Dashboard
</Button>
) : null
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/data-sources/DataSourcesList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class DataSourcesList extends React.Component {
<div>
<div className="m-b-15">
<Button {...newDataSourceProps}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New Data Source
</Button>
<DynamicComponent name="DataSourcesListExtra" />
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/destinations/DestinationsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class DestinationsList extends React.Component {
<div>
<div className="m-b-15">
<Button {...newDestinationProps}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New Alert Destination
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/groups/GroupDataSources.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class GroupDataSources extends React.Component {
<p>There are no data sources in this group yet.</p>
{currentUser.isAdmin && (
<Button type="primary" onClick={this.addDataSources}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
Add Data Sources
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/groups/GroupMembers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class GroupMembers extends React.Component {
<p>There are no members in this group yet.</p>
{currentUser.isAdmin && (
<Button type="primary" onClick={this.addMembers}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
Add Members
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/groups/GroupsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class GroupsList extends React.Component {
{currentUser.isAdmin && (
<div className="m-b-15">
<Button type="primary" onClick={this.createGroup}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New Group
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/queries-list/QueriesList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function QueriesList({ controller }) {
actions={
currentUser.hasPermission("create_query") ? (
<Link.Button block type="primary" href="queries/new">
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New Query
</Link.Button>
) : null
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/queries/QueryView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function QueryView(props) {
!addingDescription &&
!fullscreen && (
<a className="label label-tag hidden-xs" role="none" onClick={() => setAddingDescription(true)}>
<i className="zmdi zmdi-plus m-r-5" />
<i className="zmdi zmdi-plus m-r-5" aria-hidden="true" />
Add description
</a>
)
Expand Down
6 changes: 3 additions & 3 deletions client/app/pages/queries/VisualizationEmbed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ function VisualizationEmbedFooter({
{!hideTimestamp && (
<span>
<span className="small hidden-print">
<i className="zmdi zmdi-time-restore" />{" "}
<i className="zmdi zmdi-time-restore" aria-hidden="true" />{" "}
{refreshStartedAt ? <Timer from={refreshStartedAt} /> : <TimeAgo date={updatedAt} />}
</span>
<span className="small visible-print">
<i className="zmdi zmdi-time-restore" /> {formatDateTime(updatedAt)}
<i className="zmdi zmdi-time-restore" aria-hidden="true" /> {formatDateTime(updatedAt)}
</span>
</span>
)}
Expand All @@ -128,7 +128,7 @@ function VisualizationEmbedFooter({
<Dropdown overlay={downloadMenu} disabled={!queryResults} trigger={["click"]} placement="topLeft">
<Button loading={!queryResults && !!refreshStartedAt} className="m-l-5">
Download Dataset
<i className="fa fa-caret-up m-l-5" />
<i className="fa fa-caret-up m-l-5" aria-hidden="true" />
</Button>
</Dropdown>
)}
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/queries/components/QueryPageHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default function QueryPageHeader({
{headerExtra}
{isDesktop && queryFlags.isDraft && !queryFlags.isArchived && !queryFlags.isNew && queryFlags.canEdit && (
<Button className="m-r-5" onClick={publishQuery}>
<i className="fa fa-paper-plane m-r-5" /> Publish
<i className="fa fa-paper-plane m-r-5" aria-hidden="true" /> Publish
</Button>
)}

Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/query-snippets/QuerySnippetsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class QuerySnippetsList extends React.Component {
type="primary"
onClick={() => this.showSnippetDialog()}
disabled={!policy.isCreateQuerySnippetEnabled()}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New Query Snippet
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/users/UsersList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class UsersList extends React.Component {
return (
<div className="m-b-15">
<Button type="primary" disabled={!policy.isCreateUserEnabled()} onClick={this.showCreateUserDialog}>
<i className="fa fa-plus m-r-5" />
<i className="fa fa-plus m-r-5" aria-hidden="true" />
New User
</Button>
<DynamicComponent name="UsersListExtra" />
Expand Down

0 comments on commit d576ff7

Please sign in to comment.