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

misc fixes to various components #493

Merged
merged 8 commits into from
Dec 6, 2023
Merged

misc fixes to various components #493

merged 8 commits into from
Dec 6, 2023

Conversation

AlanBreck
Copy link
Collaborator

@AlanBreck AlanBreck commented Nov 29, 2023

@petemill and @fallaciousreasoning, these are miscellaneous fixes that have been piling up as I'm working on the accounts site. I put them all in one commit in this one PR just to get the ball rolling, but what's the best way to split this out? One PR per component?

Update: I've split out the work into distinct commits. I'd recommend that when we merge, we rebase instead of squash.

Copy link
Contributor

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-28e570cc6b572005d104b30fa2789028ea2a34a0/

Variables Diff
--- ./tokens/css/variables.old.css	2023-11-29 23:34:12.672987937 +0000
+++ ./tokens/css/variables.css	2023-11-29 23:33:47.012964636 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Mon Nov 27 2023 16:25:03 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Nov 29 2023 23:33:47 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Copy link
Contributor

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-15c26f576ce8e209f6c919c8f6bc5a62575c6260/

Variables Diff
--- ./tokens/css/variables.old.css	2023-11-30 17:02:56.354469145 +0000
+++ ./tokens/css/variables.css	2023-11-30 17:02:30.390363228 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Mon Nov 27 2023 16:25:03 GMT+0000 (Coordinated Universal Time)
+ * Generated on Thu Nov 30 2023 17:02:30 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Copy link
Contributor

github-actions bot commented Dec 1, 2023

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-bb8d1768ab4bb69bf36595ec7fee65be4bd2e218/

Variables Diff
--- ./tokens/css/variables.old.css	2023-12-01 04:17:57.035469696 +0000
+++ ./tokens/css/variables.css	2023-12-01 04:17:30.963515024 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Mon Nov 27 2023 16:25:03 GMT+0000 (Coordinated Universal Time)
+ * Generated on Fri Dec 01 2023 04:17:30 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

@AlanBreck AlanBreck marked this pull request as ready for review December 1, 2023 05:22
Copy link
Contributor

github-actions bot commented Dec 1, 2023

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-1080eb7f9e52cb8a1387ccd5673597d46b458296/

Variables Diff
--- ./tokens/css/variables.old.css	2023-12-01 05:20:25.895239088 +0000
+++ ./tokens/css/variables.css	2023-12-01 05:19:59.991304548 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Mon Nov 27 2023 16:25:03 GMT+0000 (Coordinated Universal Time)
+ * Generated on Fri Dec 01 2023 05:19:59 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Copy link
Collaborator

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

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

LGTM!

src/components/alert/alertCenter.svelte Outdated Show resolved Hide resolved
src/components/alert/alertCenter.svelte Outdated Show resolved Hide resolved
src/components/alert/alertCenter.svelte Show resolved Hide resolved
src/components/alert/alertCenter.svelte Outdated Show resolved Hide resolved
src/components/formItem/formItem.svelte Outdated Show resolved Hide resolved
src/components/icon/icon.svelte Show resolved Hide resolved
src/components/icon/icon.svelte Show resolved Hide resolved
This improves scrolling behavior for the dialog by ensuring that only
the body area scrolls, and there's proper padding for header and actions
if they exist.

Additional changes:
- Position has been changed to fixed
- The component now accepts attributes native to the <dialog> element
(such as autofocus)
Copy link
Contributor

github-actions bot commented Dec 5, 2023

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-9432ac66ad745ac263593b346f00bcabfda23757/

Variables Diff
--- ./tokens/css/variables.old.css	2023-12-05 23:33:38.280051947 +0000
+++ ./tokens/css/variables.css	2023-12-05 23:33:12.623852327 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Tue Dec 05 2023 20:10:25 GMT+0000 (Coordinated Universal Time)
+ * Generated on Tue Dec 05 2023 23:33:12 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Copy link
Collaborator

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

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

LGTM still @AlanBreck!

Copy link
Contributor

github-actions bot commented Dec 6, 2023

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-f23d6b0aab60b9a59d42b7731167cfd379201485/

Variables Diff
--- ./tokens/css/variables.old.css	2023-12-06 01:33:13.993124955 +0000
+++ ./tokens/css/variables.css	2023-12-06 01:32:47.749172737 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Wed Dec 06 2023 01:11:25 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Dec 06 2023 01:32:47 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@fontsource-variable/inter 5.0.15 None +0 864 kB lotusdevshack

🚮 Removed packages: @fontsource/[email protected]

This commit contains multiple improvements for both Alert and
AlertCenter.

Alert:
- Ensures text color is uses the appropriate token for the given alert
  type
- Updates icon size and padding
- Aligns icon and actions to the top instead of centering vertically
  (this is for cases where the alert height gets really tall)

AlertCenter:
- Defaults positioning to fixed, but provides CSS var to override
- Allows alert actions to include an icon
- Allows consumer to pass reference to custom alert component
- Safari doesn't currently support requestIdleCallback, so this only calls
if it exists on window.
- Allows optional title attribute on icon for a11y
- Adds --leo-icon-height to account for rectangular icons
Previously, the popup would expand to the width of the control
and the label, if the label was horizontally aligned. This ensures
that the popup width is based on the control, and not the label.

Additionally exposes the control width to the consumer via the
--leo-menu-control-width variable, and optionally allows the consumer to
set the max-width via --leo-menu-popup-max-width.
@AlanBreck
Copy link
Collaborator Author

I'm sorry for the churn on this, but I just squashed the fixup commits into their respective parent commits.

Copy link
Contributor

github-actions bot commented Dec 6, 2023

👋 Thanks for Submitting! This PR is available for preview at the link below.

✅ PR tip preview: https://493.pr.nala.bravesoftware.com/
✅ Commit preview: https://493.pr.nala.bravesoftware.com/commit-aebfac3f6fbc1a2b259c4647d7f1197802f3fc3f/

Variables Diff
--- ./tokens/css/variables.old.css	2023-12-06 01:53:47.599905526 +0000
+++ ./tokens/css/variables.css	2023-12-06 01:53:20.911932589 +0000
@@ -1,6 +1,6 @@
 /**
  * Do not edit directly
- * Generated on Wed Dec 06 2023 01:11:25 GMT+0000 (Coordinated Universal Time)
+ * Generated on Wed Dec 06 2023 01:53:20 GMT+0000 (Coordinated Universal Time)
  */
 
 :root {

Copy link
Collaborator

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

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

Still still lgtm 😆

@AlanBreck AlanBreck merged commit cb4546b into main Dec 6, 2023
6 checks passed
@AlanBreck AlanBreck deleted the misc-fixes branch December 6, 2023 18:07
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.

2 participants