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

Add some icons to mat stepper #118

Merged
merged 4 commits into from
Apr 12, 2023
Merged

Add some icons to mat stepper #118

merged 4 commits into from
Apr 12, 2023

Conversation

khalifan-kfan
Copy link
Collaborator

@khalifan-kfan khalifan-kfan commented Mar 27, 2023

Description

Add a few icons to thee map stepper in the option tool

Discussion

Tracked in issue #103

Preview

https://picsa.app

Screenshots / Videos

image
image
image
image
image
image

Base automatically changed from fix/option-tool-stepper to main March 27, 2023 19:22
Copy link
Collaborator

@chrismclarke chrismclarke left a comment

Choose a reason for hiding this comment

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

Thanks for adding @khalifan-kfan - I like how you've used a bunch of the existing mat-icons where possible and nice idea to try and add custom img tags to include our own svgs.

As mentioned on slack it would be good to refactor the img tags to be custom mat-icons instead, as that way we can more easily apply consistent styling and alignment. But otherwise I think we have a really nice base to demo and handover to research and design teams for final specifications

@khalifan-kfan
Copy link
Collaborator Author

Oh thank you @chrismclarke, I will definitely modify that. And ping you when I push the changes

Copy link
Collaborator

@chrismclarke chrismclarke left a comment

Choose a reason for hiding this comment

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

Looks good to me, I've included a couple minor non-blocking comments so these can just be resolved during future work. Nice job!

male: 'male'
};
for (const [key, value] of Object.entries(icons)) {
const iconName = `picsa_options_${key}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice idea to add a custom prefix to the icons, will make them easier to identify in the source code

<div class="genderType" style="color: #800080;" (click)="handleGender('female')"
[ngStyle]="{'background-color': gender.includes('female') ? 'pink' : 'lightgray'}">Female
<!-- <img
*ngIf="femaleIcon" [src]="femaleIcon" /> -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit(non-blocking)
If the code is no longer needed probably cleaner to just remove, git keeps code history if you ever need to recover. There's a few comments in this file that could probably be deleted

@chrismclarke chrismclarke merged commit a4757e0 into main Apr 12, 2023
@chrismclarke chrismclarke deleted the fix/option-tool-icons branch April 12, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants