Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PUI] Make API form Select Field theme-aware #6521

Merged
merged 1 commit into from Feb 20, 2024

Conversation

LavissaWoW
Copy link
Contributor

@LavissaWoW LavissaWoW commented Feb 19, 2024

Adding theme awareness to react-select field in forms.

Closes #5836

Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 916a008
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/65d3c66142353900083a6b0a
😎 Deploy Preview https://deploy-preview-6521--inventree-web-pui-preview.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 100 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@matmair
Copy link
Member

matmair commented Feb 19, 2024

Does this close #5836?

@matmair
Copy link
Member

matmair commented Feb 19, 2024

Seems to be the case
grafik

@LavissaWoW
Copy link
Contributor Author

LavissaWoW commented Feb 19, 2024

Yes :>
I was not aware of the issue

@matmair matmair added bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface labels Feb 19, 2024
@matmair matmair added this to the 0.14.0 milestone Feb 19, 2024
@matmair
Copy link
Member

matmair commented Feb 19, 2024

@LavissaWoW could you also take a look at #5824?

@LavissaWoW
Copy link
Contributor Author

@matmair Can do!

@LavissaWoW LavissaWoW changed the title Make API form Select Field theme-aware [PUI] Make API form Select Field theme-aware Feb 20, 2024
@SchrodingersGat
Copy link
Member

Cheers @LavissaWoW , LGTM

@SchrodingersGat SchrodingersGat merged commit 3eb1914 into inventree:master Feb 20, 2024
24 checks passed
// Field doesn't follow Mantine theming
// Define color theme to pass to field based on Mantine theme
const th = useMantineTheme();
let colors: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here, it would make sense to wrap this into a useMemo

@LavissaWoW LavissaWoW deleted the form-select-theme branch February 21, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[React] RelatedModelField does not conform to theme
4 participants