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

Bug fixes + minor doc site improvements #39

Merged
merged 19 commits into from
Jul 31, 2024
Merged

Conversation

slhinyc
Copy link

@slhinyc slhinyc commented Jul 17, 2024

What's in this PR

  • Update text variant of sl-button to strip all padding so that it aligns better with other elements on the screen (Link in review app)
  • Add Link page for documentation of default link style and link button options (Link in review app)
  • Fix sl-checkbox and sl-radio bug where a contained checkbox or radio had a hover state even when disabled (Link in review app)
  • Fix padding cascade bug for sl-dialog body for announcement variant (Link in review app)
  • Fix sl-button bug where a disabled link (a) button still opens the href link (Link in review app)
  • Misc doc site improvements
    • Update props tables to be more readable with no scrolling
    • Add "no footer" and default width examples to sl-dialog docs
    • Fix bug where Event names are hidden when SLIM preview is selected
    • Fix bug where icon doesn't display for component properties where reflect is true

Screenshots of props table update

Old props table
Full table isn't visible without horizontal scroll
Screenshot 2024-07-17 at 14 32 44

Updated props table
Updated styling & layout so that no scrolling is needed to see the full table
Screenshot 2024-07-17 at 14 44 24

@slhinyc slhinyc requested a review from a team as a code owner July 17, 2024 18:45
Copy link

vercel bot commented Jul 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 3:39pm

Copy link
Collaborator

@kdonovan kdonovan left a comment

Choose a reason for hiding this comment

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

🙌

Comment on lines 698 to 701
/* .table-scroll code {
white-space: nowrap;
} */

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we just cut this?

Copy link
Author

Choose a reason for hiding this comment

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

Ah, good call -- just deleted!

Comment on lines 288 to 289
| `default` confirmation | `primary` | `exclamation-circle` |
| `default` informational | `primary` | `info-circle` |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the defaults still be in there?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, they are two separate types of dialogs that should use the default variant. But your comment made me realize the table could be laid out more clearly, so I made an update!

Screenshot 2024-07-17 at 15 22 28

@slhinyc
Copy link
Author

slhinyc commented Jul 26, 2024

@kathleenteamshares @kdonovan -- Could you both take a look at some recent additions to this PR?

There was an additional component update that we needed to make & rather than cut this patch release first and open another PR, I added to this PR so that we can just wrap all the changes in a new minor release.

Updated the main PR notes to reflect all the changes. TY both! 🙏

Copy link
Collaborator

@kdonovan kdonovan left a comment

Choose a reason for hiding this comment

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

🚗

@slhinyc slhinyc merged commit 0a40ae9 into next Jul 31, 2024
4 checks passed
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.

3 participants