Closed tracker1 closed 1 year ago
@tracker1 Are you still experiencing this issue? If not, can you close this issue? I don't see any <Button color={isDark ? "white" : "brightWhite"} ... >
component being used https://github.com/tracker1/synchronet-web-t1/search?q=%3CButton. You need to add custom Button colors in theme through TypeScript module augmentation.
@ZeeshanTamboli I think I was still seeing the issue... I did find a stackoverflow answer that I need to add more than just the palette colors to get the color options on buttons... will try to get this updated over the coming weekend.
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://github.com/tracker1/synchronet-web-t1/tree/main/web-client-src
Steps:
npm i
npm run build
Current behavior 😯
Errors regarding custom color property on the buttons.
Expected behavior 🤔
Expect the build to work, with the src/types.ts being included per instructions... note: I did have
Palette['primary']
andPaletteOptions['primary']
and that portion doesn't seem to make a difference.Context 🔦
Additional/Custom colors assigned to
Button
component.Your environment 🌎
``` System: OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish) Binaries: Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn npm: 9.1.2 - ~/.nvm/versions/node/v18.12.1/bin/npm Browsers: Chrome: 103.0.5060.114 Firefox: Not Found npmPackages: @emotion/react: ^11.10.5 => 11.10.5 @emotion/styled: ^11.10.5 => 11.10.5 @mui/base: 5.0.0-alpha.108 @mui/core-downloads-tracker: 5.10.16 @mui/icons-material: ^5.10.16 => 5.10.16 @mui/material: ^5.10.16 => 5.10.16 @mui/private-theming: 5.10.16 @mui/styled-engine: 5.10.16 @mui/system: 5.10.16 @mui/types: 7.2.2 @mui/utils: 5.10.16 @types/react: ^18.0.25 => 18.0.25 react: ^18.2.0 => 18.2.0 react-dom: ^18.2.0 => 18.2.0 typescript: ^4.9.3 => 4.9.3 ```npx @mui/envinfo