Comments (1)
@Yoelio the reason for this behaviour is that the switch defines the thumb size and thumb margin for each state so in order to override the default style you would need to do the same:
const thumbTokens={
thumbSize: 8,
thumbMargin: 2
}
const switchTokens: SwitchTokens = {
width: '100%',
height: '100%',
fontSize: 12,
trackHeight: 12,
trackWidth: 24,
padding: 2,
...thumbTokens,
toggleOn: {
pressed: {
...thumbTokens
}
},
toggleOff: {
pressed: {
...thumbTokens
}
}
from fluentui-react-native.
Related Issues (20)
- Fix apple-theme jest test on macOS HOT 4
- Unable to use the Callout component in a React native windows application HOT 2
- Where is RCTFocusTrapZone? HOT 5
- Some necessary NPM modules are not in dependencies in package.json HOT 1
- All Platforms Compatibility HOT 8
- React 18 and expo 40 HOT 1
- Update macOS status tokens
- Can we use Fluent UI react with C++ application?
- Block property on button does not consistently work properly HOT 4
- Stack horizontal not working HOT 3
- Refactor Android and iOS datepicker test pages out to separate file HOT 1
- Deprecate "branded" token variants HOT 1
- ThemeProvider not updating the state when themeRef changes HOT 2
- Subtle IconOnly buttons using a Font Icon do not show click state on iOS HOT 2
- NormalPeoplePicker sometimes not returning persona text after user selected one item from suggestion list HOT 1
- The Switch component does not re-render on Theme change
- importSource cannot be set when runtime is classic. Using Expo Blank Typescript template HOT 3
- Checkbox is deprecated
- Keyboard Focus lands on back button after activating delete button. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui-react-native.