Skip to content

Commit

Permalink
feat: replace IonIcons with svg icons (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara authored Jun 7, 2022
1 parent 218e7a3 commit 4c65784
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 68 deletions.
Binary file removed app/assets/fonts/ionicons.eot
Binary file not shown.
Binary file removed app/assets/fonts/ionicons.ttf
Binary file not shown.
Binary file removed app/assets/fonts/ionicons.woff
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import PanelResizer, { PanelSide, ResizeFinishCallback, PanelResizeType } from '
import { Disclosure, DisclosureButton, DisclosurePanel } from '@reach/disclosure'
import { useCloseOnBlur } from '@/Hooks/useCloseOnBlur'
import ContentListOptionsMenu from './ContentListOptionsMenu'
import Icon from '@/Components/Icon/Icon'

type Props = {
application: WebApplication
Expand Down Expand Up @@ -174,14 +175,12 @@ const ContentListView: FunctionComponent<Props> = ({ application, viewController
<div className="section-title-bar-header">
<div className="sk-h2 font-semibold title">{panelTitle}</div>
<button
className="sk-button contrast wide"
className="flex items-center px-5 py-1 bg-contrast hover:brightness-130 color-text border-0 cursor-pointer"
title={addButtonLabel}
aria-label={addButtonLabel}
onClick={addNewItem}
>
<div className="sk-label">
<i className="ion-plus add-button" aria-hidden></i>
</div>
<Icon type="add" className="w-3.5 h-3.5" />
</button>
</div>
<div className="filter-section" role="search">
Expand Down
6 changes: 2 additions & 4 deletions app/assets/javascripts/Components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,9 @@ class Footer extends PureComponent<Props, State> {
id="lock-item"
onClick={this.lockClickHandler}
title="Locks application and wipes unencrypted data from memory."
className="sk-app-bar-item"
className="sk-app-bar-item pl-1 hover:color-info"
>
<div className="sk-label">
<i id="footer-lock-icon" className="icon ion-locked" />
</div>
<Icon type="lock-filled" />
</div>
</Fragment>
)}
Expand Down
57 changes: 0 additions & 57 deletions app/assets/stylesheets/_ionicons.scss

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/stylesheets/index.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@import 'menus';
@import 'modals';
@import 'stylekit-sub';
@import 'ionicons';
@import 'reach-sub';
@import 'sessions-modal';
@import 'preferences';
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/utils/_height.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
height: 0.75rem;
}

.h-3\.5 {
height: 0.875rem;
}

.h-26 {
width: 6.5rem;
}
Expand Down
9 changes: 7 additions & 2 deletions app/assets/stylesheets/utils/_padding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,13 @@

.px-4\.5,
.sk-panel .px-4\.5 {
padding-left: 1.375rem;
padding-right: 1.375rem;
padding-left: 1.125rem;
padding-right: 1.125rem;
}

.px-5 {
padding-left: 1.25rem;
padding-right: 1.25rem;
}

.px-9 {
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/utils/_width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
width: 0.75rem;
}

.w-3\.5 {
width: 0.875rem;
}

.w-6 {
width: 1.5rem;
}
Expand Down

0 comments on commit 4c65784

Please sign in to comment.