Skip to content

fix(ui-core): keep the ripple together with the border foreground on android - #28

Merged
farfromrefug merged 1 commit into
masterfrom
fix/ripple-keeps-border-foreground
Nov 16, 2026
Merged

farfromrefug merged 1 commit into
masterfrom
fix/ripple-keeps-border-foreground

Conversation

@farfromrefug

Copy link
Copy Markdown
Member

Summary

The ripple (rippleColor) was set with view.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

  • setRippleDrawable stores the ripple as nativeView._rippleForeground and calls the core's _updateForeground(), which layers the border over it.
  • Falls back to setForeground(ripple) when the core has no _updateForeground().

Verification

  • npm run tsc in packages/ui-core: clean; _updateForeground is in the built index.android.js.
  • Not run on a device yet. Check: a view with borderRadius, borderWidth and rippleColor keeps its border and ripples under it.

Notes

🤖 Generated with Claude Code

…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
farfromrefug marked this pull request as ready for review November 16, 2026 13:10
@farfromrefug
farfromrefug merged commit 280b4ef into master Nov 16, 2026
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>
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.

1 participant