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

[Emotion] Convert EuiDataGrid gridStyles to Emotion (Part 3) #8006

Merged
merged 18 commits into from
Sep 9, 2024

Commits on Sep 6, 2024

  1. Convert euiDataGridRow styles

    - unfortunately can't be as specific here, has to be applied to top level datagrid styles
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    f6f1910 View commit details
    Browse the repository at this point in the history
  2. Convert grid border style options to Emotion

    - handle this at topmost grid level, I personally don't think it makes any sense to split it up by component when they affect each other - more files makes it harder to write/predict
    
    + clean up several CSS unsets by assuming lack of borders rather than presence of borders
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    5d96d13 View commit details
    Browse the repository at this point in the history
  3. Convert fontSize and cellPadding grid styles

    - some fontSize/lineHeight tweaking required to stay the same as prod (due to changes Caroline made to euiFontSize)
    
    + improve Emotion className labeling
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    61d0bcf View commit details
    Browse the repository at this point in the history
  4. [tech debt] Address RowHeightUtils cell padding TODO

    - we can now obtain cell padding sizes from dynamic themes, hooray
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    b5074bb View commit details
    Browse the repository at this point in the history
  5. Convert header and footer row styles

    - pass `gridStyles` down through the body and to the rows so CSS can be a bit flatter, as those styles only concern those components
    
    + convert enzyme tests to RTL
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    0573a44 View commit details
    Browse the repository at this point in the history
  6. [docs] Tweak footer example to allow testing sticky CSS

    + remove unnecessary show footer toggle - it's the entire point of the demo, why would we disable it?
    
    + remove flex in favor of EuiSpacer
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    4e8aa7d View commit details
    Browse the repository at this point in the history
  7. Fix clashing border CSS from gridStyle props

    - grid borders and header/footer underline/overlines were conflicting with one another
    
    - borders on header/footer cells were adding extra height to the cells themselves (unlike regular row cells)
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    30c6f9b View commit details
    Browse the repository at this point in the history
  8. Delete mixins + changelog

    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    95ee639 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    340b1df View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d8210ac View commit details
    Browse the repository at this point in the history
  11. [storybook] update toolbar stories to dogfood new datagrid storybook …

    …utils
    
    - VRT stories should use minimal data still for screenshot simplicity
    
    + add 2 new stories with more customizable controls, which lists the nested props documentation for each nested config
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    f5e9eac View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4cec2ad View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    871cb40 View commit details
    Browse the repository at this point in the history
  14. [storybook] Move row height stories to their own file/subdir

    - allows us to expand props documentation & use controls for `rowHeightsOptions`
    
    + add test for lineHeight
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    92e6fd8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    70ebe64 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    f6c9b55 View commit details
    Browse the repository at this point in the history
  17. Fix false obj values not showing up in code snippet

    + remove `PRESERVED_FALSE_VALUE_PROPS` logic - we should let the defaultProps logic handle that instead and always show `false` props if they're non-defaults (testable on, e.g. `<EuiExpression uppercase={false} />`)
    cee-chen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    8aa6c0a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c5e1d07 View commit details
    Browse the repository at this point in the history