You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: Give THSpinner in .native themed coloring (#54456)
Summary:
**__Context__**:
- problem: loading indicator is always only 1 color. This means it can't be seen when its background color is light (depends on the background color used for example in a button, the button color can be the same as the indicator color) -- we need to offer a way to customize the indicator's color to effectively contrast the background
**__Technical context__**:
- css doesn't cascade and html.divs don't inherit css styles from parents in .native
- THSpinner's xstyle (var(--...)) doesn't apply to the spinner indicator
- this can be mutated through indicatorStyle & passing StyleSheet from react-native for 'color'
- we let the caller decide the color theme/scheme because the caller is the one who decides the UI context in which the spinner appears (eg within a grey-ish or white button)
**__This diff__**:
- add indicatorStyles prop with dark and light mode to give caller the option to determine spinner color based on background of call
Differential Revision: D86532694
0 commit comments