-
Notifications
You must be signed in to change notification settings - Fork 3
Checkmark marks the active highlight swatch (YPE-1034) (3/4) #286
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@youversion/platform-react-ui': patch | ||
| --- | ||
|
|
||
| BibleReader's verse action popover now marks active swatches with a checkmark (YPE-1034 PR3, still behind the internal `HIGHLIGHTS_LIVE` flag). | ||
|
|
||
| - **Checkmark swap**: active/remove swatches now render a 24px checkmark (`icons/check`) instead of the X, matching iOS (platform-sdk-swift #179). Same theme-invariant `#121212` fill and identical behavior — tapping still removes the highlight. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import type { ComponentProps, ReactElement } from 'react'; | ||
|
|
||
| export function CheckIcon(props: ComponentProps<'svg'>): ReactElement { | ||
| return ( | ||
| <svg | ||
| width="24" | ||
| height="24" | ||
| viewBox="0 0 24 24" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| aria-hidden | ||
| {...props} | ||
| > | ||
| <path | ||
| d="M19.6627 6.13882C20.0663 6.51547 20.0888 7.14784 19.7124 7.55165L19.7007 7.56339C19.693 7.57162 19.6815 7.58408 19.6661 7.60068C19.6349 7.63447 19.5879 7.68562 19.5266 7.75259C19.404 7.88675 19.2237 8.08624 18.9942 8.343C18.5352 8.85666 17.8803 9.60146 17.1022 10.5223C15.5446 12.3656 13.497 14.9071 11.5296 17.708C11.3594 17.9502 11.1725 18.22 10.9889 18.4172C10.7971 18.6231 10.45 18.9278 9.92408 18.942C9.39431 18.9563 9.02907 18.666 8.8282 18.4718C8.63358 18.2836 8.43144 18.0219 8.24539 17.7854C7.25297 16.5234 6.27013 15.4686 5.53573 14.7291C5.16905 14.3598 4.8656 14.0704 4.6553 13.8749C4.5502 13.7771 4.46885 13.7022 4.41431 13.6532C4.38726 13.6289 4.36672 13.611 4.35354 13.5993C4.34694 13.5935 4.34194 13.5888 4.33904 13.5862C4.33767 13.585 4.33607 13.5846 4.33558 13.5842C3.91934 13.2213 3.8761 12.589 4.23891 12.1727C4.60179 11.7565 5.23338 11.7139 5.64967 12.0767L5.65036 12.076L5.65796 12.0836C5.66273 12.0878 5.67017 12.094 5.67867 12.1016C5.69565 12.1166 5.72014 12.1379 5.75118 12.1658C5.81368 12.222 5.90392 12.3044 6.01772 12.4102C6.24522 12.6218 6.56756 12.9297 6.95478 13.3197C7.72857 14.0989 8.76556 15.2122 9.81704 16.5493C9.83185 16.5681 9.84664 16.5862 9.86055 16.6039C9.87102 16.589 9.88266 16.574 9.89369 16.5583C11.9059 13.6936 13.9928 11.1031 15.5747 9.23103C16.3663 8.29427 17.0331 7.53573 17.5027 7.01027C17.7375 6.7475 17.9228 6.54269 18.0503 6.40329C18.1138 6.33381 18.1632 6.28075 18.1967 6.24447C18.2133 6.22647 18.2266 6.2125 18.2353 6.20304C18.2397 6.1983 18.2434 6.19382 18.2457 6.1913L18.2492 6.18784C18.6259 5.784 19.2588 5.76208 19.6627 6.13882Z" | ||
| fill="currentColor" | ||
| /> | ||
| </svg> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.