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

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   This PR improves the `Table Chart` header controls in several ways:
   
   1. **Fixed accessibility issue**: Removed non-functional `sr-only` class 
that was causing "Select page size" label to be visible. The class doesn't 
exist in the codebase, so the label was showing alongside the intended UI.
   
   2. **Improved responsive layout**: Replaced multiple `Space` components with 
Ant Design's `Flex` component for better control wrapping behavior. The 
controls now properly adapt to different chart widths when resized in 
dashboards.
   
   3. **Layout structure**:
      - Left side: "Show X entries per page" selector
      - Right side: `Search by` dropdown and `Search` input
      - Controls wrap gracefully when space is limited
      - All elements use proper theming tokens (`theme.sizeUnit`)
   
   4. **Code cleanup**: Removed unnecessary styled components and simplified 
the component structure using built-in `Ant Design` components.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   Before:
   <img width="589" height="412" alt="image (5)" 
src="https://github.com/user-attachments/assets/90d0ab1e-377c-49ea-bc09-c3c3414e2a0b";
 />
   
   After:
   <img width="1461" height="415" alt="Screenshot 2025-10-02 at 16 57 58" 
src="https://github.com/user-attachments/assets/2dbcba51-8bb9-4f7c-ab65-bfd6a052b829";
 />
   
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   1. Create (or open) a Table Chart with `server-side pagination` and `Search 
Box` enabled
   2. Verify the header shows "Show X entries per page" on the left
   3. Verify `Search by` dropdown and `Search` input appear on the right
   4. Add the chart to a dashboard
   5. Resize the chart to different widths and verify:
      - Large width: controls stay on one row (page size left, search controls 
right)
      - Medium width: controls wrap to separate rows
      - Small width: all controls stack vertically
   6. Verify no "Select page size" text appears anywhere
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
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