fitzee opened a new pull request, #42266:
URL: https://github.com/apache/superset/pull/42266

   ### SUMMARY
   
   When clicking into a dashboard native-filter **value** control (e.g. a 
multi-select filter), the caret and the placeholder/typed text render 
**centered** instead of left-aligned.
   
   This is a regression from the Ant Design v6 upgrade. antd v6 emits 
`text-align: center` directly on `.ant-select-multiple .ant-select-content` 
(its own css-in-js). The Select search `<input>` lives inside 
`.ant-select-content` and resolves `text-align` by inheritance, so the 
caret/text inherit the centered value.
   
   **Fix:** in the shared `FilterPluginStyle` wrapper used by all native filter 
value plugins, pin `text-align: start` and override `.ant-select 
.ant-select-content` directly. Overriding the element itself is required 
because a value inherited from an ancestor cannot beat a rule that targets 
`.ant-select-content` directly. The override's specificity (wrapper class + two 
antd classes = `0,3,0`) beats antd's `.ant-select-multiple .ant-select-content` 
(`0,2,0`) without `!important`. `start` is the CSS default, so this is a no-op 
except where antd leaked the centered alignment, and it's RTL-safe.
   
   Scoped to native filter value controls (Select, Range, Time, TimeColumn, 
TimeGrain) — no app-wide blast radius.
   
   ### TESTING INSTRUCTIONS
   
   1. Add a native filter of type **Value** (multi-select) to a dashboard.
   2. Click into the filter's input.
   3. The caret and placeholder/typed text should be left-aligned (inline 
start), not centered.
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue
   - [x] Required feature flags: n/a
   - [x] Changes UI
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to