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 highlight function in the editor #1057

Merged
merged 2 commits into from
Aug 11, 2023
Merged

Fix highlight function in the editor #1057

merged 2 commits into from
Aug 11, 2023

Conversation

planarvoid
Copy link
Contributor

Fix

Highlight action was only partially implemented in the Aztec editor. This PR fixes that. The color for highlight can come from 2 places. It's either set in parameters or it can be passed as part of the css styles (this takes precedence over android styles).

Test

Test this with the linked PR

Review

@[USER_NAME]

Make sure strings will be translated:

  • If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.

@khaykov khaykov self-assigned this Aug 10, 2023
Copy link
Member

@khaykov khaykov 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! I was confused about how test it, but with client I was able to confirm that it works.

There is one unused attribute, but feel free to merge when it's removed.

) : BackgroundColorSpan(ContextCompat.getColor(context, highlightStyle.color)), IAztecInlineSpan {
val colorHex: Int
) : BackgroundColorSpan(colorHex), IAztecInlineSpan {
var alpha: Int = 220
Copy link
Member

Choose a reason for hiding this comment

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

I believe this alpha value is not used.

@planarvoid planarvoid merged commit 3796763 into trunk Aug 11, 2023
14 checks passed
@planarvoid planarvoid deleted the fix/highlight-action branch August 11, 2023 11:07
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