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

fix(date-picker-range): make inputs take the whole available space #8061

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

weronikaolejniczak
Copy link
Contributor

@weronikaolejniczak weronikaolejniczak commented Oct 4, 2024

Summary

Between the latest v95.10.1 and v95.7.0 the fullWidth prop stopped working as expected.

Current behaviour:

Screen.Recording.2024-10-04.at.11.16.15.mov

Expected behaviour:

Screen.Recording.2024-10-04.at.11.15.34.mov

Because both controls (the start and end date) are within a flex parent, we can use flex: 1 to make them take all the available space equally. I added a comment to highlight that it's important for fullWidth functionality because it's not applied conditionally based on the fullWidth value.

QA

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@weronikaolejniczak weronikaolejniczak requested a review from a team as a code owner October 4, 2024 11:34
@weronikaolejniczak weronikaolejniczak force-pushed the fix/date-picker-range-full-width branch 2 times, most recently from ac3ab9c to 8c3b5c2 Compare October 4, 2024 11:44
@weronikaolejniczak weronikaolejniczak linked an issue Oct 4, 2024 that may be closed by this pull request
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

The fix looks great - awesome work on this Weronika!

If you haven't had a chance, feel free to take a look into our visual regression testing wiki - this bugfix might be a good candidate for it. Definitely not a blocker though, I'm good with merging this as-is!

@cee-chen
Copy link
Member

cee-chen commented Oct 8, 2024

Going to go ahead and merge this to get it into this week's release - let's investigate VRT separately Weronika!

@cee-chen cee-chen merged commit 2f82ffe into main Oct 8, 2024
5 checks passed
@cee-chen cee-chen deleted the fix/date-picker-range-full-width branch October 8, 2024 17:05
delanni pushed a commit to elastic/kibana that referenced this pull request Oct 14, 2024
`v96.1.0`⏩`v97.0.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)

**Breaking changes**

- EuiDataGrid's custom grid body (rendered via `renderCustomGridBody`)
no longer automatically renders the column header row or footer rows. It
instead now passes the `headerRow` and `footerRow` React elements, which
require manual rendering.
([#8028](elastic/eui#8028))
- This change was made to allow consumers to sync header/footer rows
with their own custom virtualization libraries.
- To facilitate this, a `gridWidth` prop is now also passed to custom
grid body renderers.

**Bug fixes**

- Fixed inputs not taking the whole width when passing `fullWidth` as
`true` to EuiDatePickerRange component
([#8061](elastic/eui#8061))

**Accessibility**

- Improved accessibility of `EuiExternalLinkIcon` by clarifying text for
Screen Reader users. ([#8065](elastic/eui#8065))

---------

Co-authored-by: Elastic Machine <[email protected]>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2024
`v96.1.0`⏩`v97.0.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)

**Breaking changes**

- EuiDataGrid's custom grid body (rendered via `renderCustomGridBody`)
no longer automatically renders the column header row or footer rows. It
instead now passes the `headerRow` and `footerRow` React elements, which
require manual rendering.
([elastic#8028](elastic/eui#8028))
- This change was made to allow consumers to sync header/footer rows
with their own custom virtualization libraries.
- To facilitate this, a `gridWidth` prop is now also passed to custom
grid body renderers.

**Bug fixes**

- Fixed inputs not taking the whole width when passing `fullWidth` as
`true` to EuiDatePickerRange component
([elastic#8061](elastic/eui#8061))

**Accessibility**

- Improved accessibility of `EuiExternalLinkIcon` by clarifying text for
Screen Reader users. ([elastic#8065](elastic/eui#8065))

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit cd60c66)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Date picker range fullWidth
3 participants