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

QuickEditor: Clickable alt text help link brings to support page #528

Merged
merged 8 commits into from
Jan 13, 2025

Conversation

mlumeau
Copy link
Member

@mlumeau mlumeau commented Jan 10, 2025

Closes #500

Description

This PR adds a navigation to the support page article regarding alt text to the "What is alt text?" label "?" button in the alt text dialog.

Navigation happens in a new browser tab, to be consistent with the behavior of other links.

Testing Steps

  1. Open the quick editor
  2. Open the three-dot menu on an avatar and click on "Alt text"
  3. Click on "What is alt text?" the "?" button

@mlumeau mlumeau added new feature New feature [Feature] Gravatar-Quickeditor Gravatar Quick Editor module labels Jan 10, 2025
@mlumeau mlumeau added this to the 2.3.0 milestone Jan 10, 2025
@mlumeau mlumeau requested a review from hamorillo January 10, 2025 09:54
@mlumeau mlumeau changed the title Clickable alt text help link brings to support page QuickEditor: Clickable alt text help link brings to support page Jan 10, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jan 10, 2025

📲 You can test the changes from this Pull Request in Gravatar Demo by scanning the QR code below to install the corresponding build.
App Name Gravatar Demo
Commit39aa55a
Direct Downloadgravatar-demo-prototype-build-pr528-39aa55a.apk

Copy link
Contributor

@hamorillo hamorillo left a comment

Choose a reason for hiding this comment

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

💡 I remember discussing whether we should replace the label "What is alt text?" with just the icon ❔ . Maybe we can double-check that before merging.

Copy link
Contributor

@hamorillo hamorillo left a comment

Choose a reason for hiding this comment

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

🚀

tint = MaterialTheme.colorScheme.primary,
contentDescription = stringResource(id = R.string.gravatar_qe_avatar_alt_text_section_what_is),
modifier = Modifier.clickable {
uriHandler.openUri(GRAVATAR_ALT_TEXT_HELP_URL)
Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ Nitpicking: We can try to increase the clickable area slightly (maybe with padding? But, indeed, we don't have a lot of space, so feel free to omit this comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a 4dp padding to the button, that's all I could do without increasing the height of the page.

Copy link
Contributor

Choose a reason for hiding this comment

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

With the new padding, the "?" button is not aligned with the Save button and looks weird. I didn't realize about that when I wrote my first comment. Maybe we should keep it as it was (without the padding) and not modify all paddings in the composables. Sorry for bothering you. 😞

Copy link
Member Author

Choose a reason for hiding this comment

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

As you prefer 😅 I didn't notice the misalignment until your remark. I'll revert and merge!

@mlumeau mlumeau requested a review from hamorillo January 13, 2025 09:21
@mlumeau mlumeau merged commit 71123a7 into trunk Jan 13, 2025
17 checks passed
@mlumeau mlumeau deleted the mlumeau/500-what-is-alt-text-link branch January 13, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Gravatar-Quickeditor Gravatar Quick Editor module new feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quick Editor: Alt Text - Implement "What is Alt Text?" feature
4 participants