-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(action): Ensure action content is correctly spaced (#8184)
**Related Issue:** #6879 ## Summary Ensures extra space is not added to an action. This is solved by: When an icon is present, the indicator will always be appended to the bottom right. This ensures it remains in the same place whether a parent Action Bar is expanded, or not. The indicator moved a couple of px away - in the future I think we can improve this with a border or clipped ring around the indicator to prevent overlap. Also resolves #5860, for icon-only uses. When an icon is not present, the indicator will be positioned adjacent to the text container. | Before | After | | ------------- | ------------- | | <img width="500" alt="Screenshot 2023-11-15 at 5 00 35 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/ae4d202b-260e-411d-b6fc-30fea2c549ea"> | <img width="500" alt="Screenshot 2023-11-15 at 4 58 47 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/284119d3-e8c4-40e1-8272-7ee204a36539"> | | Before | After | | ------------- | ------------- | | <img width="500" alt="Screenshot 2023-11-15 at 5 00 25 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/fe845c89-abb6-4416-8013-5e105c0b3ebf"> | <img width="500" alt="Screenshot 2023-11-15 at 4 59 26 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/89ef62bf-7a7b-4a1f-ba29-3165df698347"> | (Note, in this one, the "beaker" image is NOT an `icon` property, it is just a slotted element - so the indicator is not positioned over it. This isn't really a documented / expected use case.) | Before | After | | ------------- | ------------- | | <img width="500" alt="Screenshot 2023-11-15 at 5 00 47 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/c8722108-d9df-4540-b268-e7c8e263afdd"> | <img width="500" alt="Screenshot 2023-11-15 at 5 01 02 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/d5a06b63-92bc-4e53-a348-505c9d173188"> | | Before | <img width="1030" alt="Screenshot 2023-11-15 at 6 17 38 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/c3ef3696-71bc-4bde-b066-ea56aebd07bd"> | | ------------- | ------------- | | After | <img width="1030" alt="Screenshot 2023-11-15 at 6 17 57 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/61d91130-a637-4257-84b2-42df18ecb790"> | | Before | <img width="1313" alt="Screenshot 2023-11-15 at 6 21 22 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/26289014-9df0-4e3d-ab2e-491be34cf97b"> | | ------------- | ------------- | | After | <img width="1313" alt="Screenshot 2023-11-15 at 6 18 30 PM" src="https://github.com/Esri/calcite-design-system/assets/4733155/d32c2249-86ac-4a4f-9ac8-a7cbde0c322c"> |
- Loading branch information
1 parent
b7d0840
commit a8bdd86
Showing
5 changed files
with
95 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters