fix(ColorPicker): restore alpha input visibility hidden by geostyler CSS#38169
fix(ColorPicker): restore alpha input visibility hidden by geostyler CSS#38169
Conversation
The geostyler library includes CSS that hides the AntD ColorPicker alpha input element (`.ant-color-picker-alpha-input`). This fix adds global style overrides to restore visibility of the alpha/opacity input field and slider. Fixes #34721 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Code Review Agent Run #35c02dActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Sequence DiagramThis PR adds global CSS overrides to counteract geostyler's rules that hid the AntD ColorPicker alpha input. The diagram shows loading of conflicting CSS and the global style override restoring the alpha input visibility in the rendered ColorPicker. sequenceDiagram
participant Browser
participant App
participant GeoStylerCSS as geostyler CSS
participant GlobalStyles
participant ColorPicker as AntD ColorPicker
Browser->>App: Load application
App->>GeoStylerCSS: Include geostyler stylesheet (hides .ant-color-picker-alpha-input)
App->>GlobalStyles: Inject GlobalStyles.tsx (override selectors)
GlobalStyles-->>Browser: Emit CSS that restores alpha input & slider spacing
Browser->>ColorPicker: Render ColorPicker component
ColorPicker-->>Browser: Alpha input and slider visible (overrides applied)
Generated by CodeAnt AI |
SUMMARY
This PR fixes an issue where the alpha/opacity input field in the AntD ColorPicker component is hidden due to CSS styles from the geostyler library.
Root Cause: The geostyler package includes CSS in
node_modules/geostyler/dist/Component/Symbolizer/Field/ColorField/ColorField.cssthat setsdisplay: noneon several AntD ColorPicker elements including.ant-color-picker-alpha-inputand.ant-color-picker-slider-alpha.Solution: Add global CSS overrides in
GlobalStyles.tsxto restore the visibility of the alpha input and slider with appropriate spacing.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: Alpha input field is hidden (as shown in issue screenshots)
After: Alpha input field and slider are visible with proper spacing
Note: The screenshots in the original issue #34721 show the problem clearly.
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
🤖 Generated with Claude Code