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

[Input components, Combobox, Popover] Make close and clear buttons more consistent across system #6640

Open
ashetland opened this issue Mar 23, 2023 · 7 comments
Assignees
Labels
1 - assigned Issues that are assigned to a sprint and a team member. Calcite (design) Issues logged by Calcite designers. design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. estimate - design - sm Small design effort; 1-4 days of design work estimate - 5 A few days of work, definitely requires updates to tests. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive p - high Issue should be addressed in the current milestone, impacts component or core functionality p4 - not time sensitive User set priority status of p4 - not time sensitive visual changes Issues with visual changes that are added for consistency, but are not backwards compatible

Comments

@ashetland
Copy link

ashetland commented Mar 23, 2023

Draft proposal - pending user feedback

Description

Close buttons across Calcite exhibit some inconsistencies due to differences in implementation. Ideally close buttons would be consistent in both design and implementation throughout the system.

Acceptance Criteria

Update close & clear button padding

  • Use action for close and clear buttons
  • Update padding in consuming component

Relevant Info

Part of 4.0's Phase 2

Blocked by: #10759

Which Component

  • combobox
  • popover
  • input
  • input-number
  • input-text
  • input-date-picker
  • input-time-picker
  • input-time-zone

Example Use Case

No response

Priority impact

p4 - not time sensitive

Esri team

Calcite (design)

@ashetland ashetland added enhancement Issues tied to a new feature or request. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Mar 23, 2023
@github-actions github-actions bot added Calcite (design) Issues logged by Calcite designers. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels Mar 23, 2023
@geospatialem geospatialem added the design Issues that need design consultation prior to development. label Mar 23, 2023
@ashetland ashetland added this to the Design Backlog milestone Jun 5, 2023
@ashetland ashetland removed the needs triage Planning workflow - pending design/dev review. label Jun 5, 2023
@ashetland
Copy link
Author

ashetland commented Jun 5, 2023

Need to rescope this to include Close and Clear buttons. Basic design of x-button is complete and should be ready to propagate in design files. cc @jcfranco

@ashetland ashetland added ready for dev Issues ready for development implementation. needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. and removed design Issues that need design consultation prior to development. labels Jun 6, 2023
@geospatialem geospatialem removed this from the Design Backlog milestone Jun 6, 2023
@ashetland ashetland changed the title Make close buttons more consistent across system Make close and clear buttons more consistent across system Jul 3, 2023
@jcfranco
Copy link
Member

jcfranco commented Jul 3, 2023

For posterity, the z-index workaround for #7272 will probably not be needed if tabs' closable button ends up being round.

@ashetland ashetland added design Issues that need design consultation prior to development. 1 - assigned Issues that are assigned to a sprint and a team member. p - low Issue is non core or affecting less that 10% of people using the library and removed 0 - new New issues that need assignment. ready for dev Issues ready for development implementation. labels Jul 7, 2023
@ashetland ashetland self-assigned this Jul 7, 2023
@ashetland ashetland added this to the Design Sprint Next milestone Jul 7, 2023
@ashetland
Copy link
Author

ashetland commented Jul 7, 2023

To do

  • Verify above list and add any missing
  • Determine which component should get round or square buttons (or if everything just goes round)
  • Make visual catalogue of changes

@ashetland ashetland removed the needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. label Jul 10, 2023
@ashetland ashetland added p - medium Issue is non core or affecting less that 60% of people using the library and removed p - low Issue is non core or affecting less that 10% of people using the library labels Aug 18, 2023
@brittneytewks brittneytewks added the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Sep 12, 2023
@ashetland ashetland added p - low Issue is non core or affecting less that 10% of people using the library and removed p - medium Issue is non core or affecting less that 60% of people using the library labels Sep 15, 2023
@ashetland ashetland added p - medium Issue is non core or affecting less that 60% of people using the library and removed p - low Issue is non core or affecting less that 10% of people using the library labels Sep 20, 2023
@ashetland ashetland added the estimate - design - sm Small design effort; 1-4 days of design work label Oct 31, 2023
@brittneytewks brittneytewks removed the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Dec 11, 2023
@alisonailea
Copy link
Contributor

I think code-wise we should create a mixin similar to the Floating UI functions that all components can share.

@driskull
Copy link
Member

Currently, we only have an internal functional component to handle close buttons. We should consider using action or enhancing it to meet the needs of close buttons. It would be good to use an existing component if possible. Ideally, whatever we do we have public so other users can create componets with close buttons that match ours.

@ashetland
Copy link
Author

ashetland commented Mar 26, 2024

I've wondered about using Action too. Action would need more scales added (or a way to make them smaller) to accommodate all the sizes we need. It would also need the ability to be round. For example, Chips use a round 16px close button. Maybe rounding it could be achieved without explicitly adding that to Actions? In any other context, round Actions could be weird?

@driskull
Copy link
Member

Action or Button make sense from a close look but it could warrant its own component if those won't be able to handle it.

@DitwanP DitwanP removed this from the Design Backlog milestone Jul 11, 2024
@github-actions github-actions bot added the p4 - not time sensitive User set priority status of p4 - not time sensitive label Oct 8, 2024
@DitwanP DitwanP changed the title Make close and clear buttons more consistent across system [Input components, Combobox, Popover] Make close and clear buttons more consistent across system Nov 18, 2024
@DitwanP DitwanP added p - high Issue should be addressed in the current milestone, impacts component or core functionality estimate - 5 A few days of work, definitely requires updates to tests. visual changes Issues with visual changes that are added for consistency, but are not backwards compatible and removed p - medium Issue is non core or affecting less that 60% of people using the library labels Nov 18, 2024
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. Calcite (design) Issues logged by Calcite designers. design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. estimate - design - sm Small design effort; 1-4 days of design work estimate - 5 A few days of work, definitely requires updates to tests. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive p - high Issue should be addressed in the current milestone, impacts component or core functionality p4 - not time sensitive User set priority status of p4 - not time sensitive visual changes Issues with visual changes that are added for consistency, but are not backwards compatible
Projects
None yet
Development

No branches or pull requests

7 participants