Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: icon refactor #2349

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: icon refactor #2349

wants to merge 2 commits into from

Conversation

SHolleworth
Copy link
Contributor

@SHolleworth SHolleworth commented Feb 6, 2025

Standardise icon use
Add missing icons
Remove unused icons

Copy link

github-actions bot commented Feb 6, 2025

(auto-deploy) A deployment has been created for this Pull Request

Preview links

As part of the code review process, please ensure that you test against the following

Version URL
Web https://web.env.reactivetrader.com/pull/2349
OpenFin - FX fins://openfin.env.reactivetrader.com/pull/2349/config/rt-fx.json
OpenFin - Credit fins://openfin.env.reactivetrader.com/pull/2349/config/rt-credit.json
OpenFin - Launcher fins://openfin.env.reactivetrader.com/pull/2349/config/launcher.json
OpenFin - Workspace fins://openfin.env.reactivetrader.com/pull/2349/workspace/config/workspace.json

Performance

Please ensure that this PR does not degrade the performance of the UI. We should maintain a performance score of 95+.

https://developers.google.com/speed/pagespeed/insights/?url=https://web.env.reactivetrader.com/pull/2349

@@ -1,4 +1,4 @@
export default (
export const AppleShareIcon = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

<svg width="16" height="16" viewBox="0 0 24 24">
<path
d="M11.9991 21.2501C11.8091 21.2501 11.6191 21.1801 11.4691 21.0301L5.39914 14.9601C5.10914 14.6701 5.10914 14.1901 5.39914 13.9001C5.68914 13.6101 6.16914 13.6101 6.45914 13.9001L11.9991 19.4401L17.5391 13.9001C17.8291 13.6101 18.3091 13.6101 18.5991 13.9001C18.8891 14.1901 18.8891 14.6701 18.5991 14.9601L12.5291 21.0301C12.3791 21.1801 12.1891 21.2501 11.9991 21.2501Z"
fill="currentColor"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would top-level fill work in these icons, per this article

<svg
width={width}
height={height}
width={18}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is hard-coding def what we want?

<svg width={28} height={28} viewBox="0 0 24 24">
<path
d="M12 19.25C8 19.25 4.75 16 4.75 12C4.75 8 8 4.75 12 4.75C16 4.75 19.25 8 19.25 12C19.25 16 16 19.25 12 19.25ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25Z"
fill="#292D32"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard-coded, non-theme?

@@ -0,0 +1,12 @@
export const SearchIcon = (
<svg width="16" height="16" viewBox="0 0 24 24">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit .. sometimes width={16}, sometimes width="16" .. suggest latter, unless we are using expressions ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants