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

[Tile/Tile Group]: The width of the tile does not grow to full width #11199

Open
2 of 6 tasks
jasdelreyes opened this issue Jan 3, 2025 · 4 comments
Open
2 of 6 tasks
Assignees
Labels
1 - assigned Issues that are assigned to a sprint and a team member. ArcGIS Data Pipelines Issues logged by ArcGIS Data Pipelines team members. ArcGIS Map Viewer Issues logged by ArcGIS Map Viewer team members. ArcGIS Online Issues logged by ArcGIS Online team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. estimate - 2 Small fix or update, may require updates to tests. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone p - high Issue should be addressed in the current milestone, impacts component or core functionality spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment.

Comments

@jasdelreyes
Copy link

Check existing issues

Actual Behavior

The width of the tiles in tile group do not expand to the full width of its parent container. This was previously allowed in the way that tile-select was built with a width prop.

Expected Behavior

The width of the tiles acts responsively, and grows and shrinks to the full size of the parent container.

Reproduction Sample

https://codepen.io/jasdelreyes/pen/PwYOKqr?editors=1100

Reproduction Steps

See the repro in the codepen above.

Reproduction Version

~3.0.0-next.50

Relevant Info

In the codepen, you can see a workaround of using the css values of contents and width: 100%. This works to expand the width of the tiles, but prevents the tiles from showing the greyed out state when disabled.

Regression?

No response

Priority impact

impact - p2 - want for an upcoming milestone

Impact

No response

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Online

@jasdelreyes jasdelreyes added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Jan 3, 2025
@github-actions github-actions bot added ArcGIS Online Issues logged by ArcGIS Online team members. calcite-components Issues specific to the @esri/calcite-components package. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone labels Jan 3, 2025
@nid13240
Copy link

nid13240 commented Jan 3, 2025

+1 also running into this in MapViewer

@geospatialem geospatialem added the ArcGIS Map Viewer Issues logged by ArcGIS Map Viewer team members. label Jan 3, 2025
@doreenbrinkman
Copy link

+1 also have issue in Data Pipelines

@geospatialem geospatialem added the ArcGIS Data Pipelines Issues logged by ArcGIS Data Pipelines team members. label Jan 6, 2025
@geospatialem geospatialem added the p - high Issue should be addressed in the current milestone, impacts component or core functionality label Jan 6, 2025
@geospatialem geospatialem added 2 - in development Issues that are actively being worked on. estimate - 2 Small fix or update, may require updates to tests. and removed 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Jan 6, 2025
@eriklharper
Copy link
Contributor

eriklharper commented Jan 6, 2025

@jasdelreyes @nid13240 Here's a pure CSS solution to your problem: https://codepen.io/eriklharper/pen/PwYEjgx

Because calcite-tile sets min and max inline size (width) properties directly on itself (via the :host selector), the max-inline-size and min-inline-size properties are completely accessible to overrides based on your layout requirements.

Let me know if that solution above works for you. It seems to work fine with either min-inline-size or max-inline-size set individually (see comment I included in the codepen's css file).

@doreenbrinkman
Copy link

This works for Data Pipelines. Thanks!

@geospatialem geospatialem added spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment. 1 - assigned Issues that are assigned to a sprint and a team member. and removed 2 - in development Issues that are actively being worked on. labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - assigned Issues that are assigned to a sprint and a team member. ArcGIS Data Pipelines Issues logged by ArcGIS Data Pipelines team members. ArcGIS Map Viewer Issues logged by ArcGIS Map Viewer team members. ArcGIS Online Issues logged by ArcGIS Online team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. estimate - 2 Small fix or update, may require updates to tests. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone p - high Issue should be addressed in the current milestone, impacts component or core functionality spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Projects
None yet
Development

No branches or pull requests

5 participants