Repository navigation
fix(ui-core): keep the ripple together with the border foreground on android - #28
Merged
Merged
Conversation
…android The ripple was set with view.setForeground(), which replaced the border the core draws over the children (and was replaced by it): a view with a border radius, a border width and a rippleColor lost its border. The ripple is now given to the core (_rippleForeground), which keeps both in its foreground. Without the core's _updateForeground(), the foreground is set as before. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
farfromrefug
marked this pull request as ready for review
November 16, 2026 13:10
weblate
pushed a commit
to weblate/alpimaps
that referenced
this pull request
Nov 18, 2026
typings: the typed lookAhead of the SDK. ui-core: the ripple/border foreground fix (nativescript-community/ui-native-components#28, with Akylas/NativeScript#18). Drop the ui-core portal once it is released. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The ripple (
rippleColor) was set withview.setForeground(rippleDrawable). Since Akylas/NativeScript#17 the core draws a bordered, rounded view's border as the same foreground, over the children: each replaced the other, so a view with a border radius, a border width and a ripple lost its border.Changes
setRippleDrawablestores the ripple asnativeView._rippleForegroundand calls the core's_updateForeground(), which layers the border over it.setForeground(ripple)when the core has no_updateForeground().Verification
npm run tscinpackages/ui-core: clean;_updateForegroundis in the builtindex.android.js.borderRadius,borderWidthandrippleColorkeeps its border and ripples under it.Notes
🤖 Generated with Claude Code