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

Fix for the alignment of the "Back to profile" button #345

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

rnr
Copy link
Contributor

@rnr rnr commented Mar 14, 2024

Fix for 325 Issue
As @sdaitzman suggested, the "Back to Profile" button uses the basic button style. The "Delete Account" button uses the red error/danger colour to highlight which action is destructive.
Also, StyledButton View can now have an icon image. The icon can be placed to the left or right of the button title text.

Inactive delete button:

Light Dark
1e067826-15dc-4c12-b5e3-64a63dac19d2 f590ec79-f07c-414c-948f-45548e4095e8

Active delete button:

Light Dark
a49d8ae4-50da-48fb-908b-a99fbc678b73 2b8ee67d-ee7c-4c0e-b11f-e42f347a49cc

@rnr rnr changed the title Styled button with icon Fix for the alignment of the "Back to profile" button Mar 14, 2024
@rnr rnr linked an issue Mar 14, 2024 that may be closed by this pull request
Copy link
Contributor

@saeedbashir saeedbashir left a comment

Choose a reason for hiding this comment

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

@rnr Please switch the button styles i.e the Yes, delete account will be a filled button (primary button style) and Back to profile will be with clear bg.

@rnr rnr requested a review from saeedbashir March 15, 2024 13:11
@saeedbashir
Copy link
Contributor

@rnr Please switch the button styles i.e the Yes, delete account will be a filled button (primary button style) and Back to profile will be with a clear bg.

Oh, it was already discussed here #315 (comment)

Copy link
Contributor

@saeedbashir saeedbashir left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@volodymyr-chekyrta volodymyr-chekyrta merged commit 09c85bb into openedx:develop Mar 15, 2024
3 checks passed
@rnr rnr deleted the styled-button-with-icon branch March 19, 2024 14:48
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.

[iOS] Align "Back to profile" button title
3 participants