-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
Polish Pass: Utility Features #922
Comments
A new PR has been added, and you view a preview URL for the newest changes here: Per today's update I've updated the Local Storage Store to the latest upstream changes, as well as implemented some minor improvements to the Code Block component. Additionally I've introduced a proof of concept "Previewer" component, which gives you an interactive canvas space for previewing components, their HTML/CSS/JS code, as well as some settings like viewport size and background color. I don't expect to implement this broadly yet, but you can see the proof of concept on the Code Blocks page. The examples at the top of the page use this. |
Preview URL: Today's updates have focused on Drawers, including a refactor to cleanup the animation logic, and a slew of new style properties. This should greatly expand the customization capabilities of this feature. Here's an example of a highly customized instance: I've also added a subtle rounded effect to the Drawer element that matches theme settings and updates accordingly based on position: Additionally I've research a means to animate the background content while the drawer is open. This will be best served as a feature users implement, as we cannot know what sort of layout structure they might be using. I've provided more documentation about drawers using the Singleton pattern and what this means. Finally, I've added a fixed note that we do not (and will not) support a means to disable the click-to-close backdrop feature. It's something we get regular requests for, so I want to make it clear it's against a11y best practices. |
The Lightswitch component has been completely rebuilt from the ground up. Preview it here: Notable changes:
In a nutshell, the basic version is at simple as before, but now provide a ton of power-user features. |
We have a BIG series of modal updates today. These can be previewed here: Notable changes:
Here's what it looks like to register a set of components in the root layout: Here's the reduction in code for our doc search modal using the above techniques: That said, I do still have one more item I would like to address, which is making modals async by default, per #937 |
Several notable updates to the Toast utility today. You can preview this here:
|
|
Big update today - both Menus and Tooltips have now been replaced with the new "Popups" feature: popups.mp4This includes a new dependency called Floating UI (previously known as Popper.js): Notable improvements:
|
|
|
Popup QA feedback:
|
Reminder:
|
The callback function would then look for a status of "assigned" or "closed" to fire the appropriate event. |
FYI this has been merged into |
Per Popups
|
Base on:
Goals
The goal of this pass will be to improve, refine, and finalize all Utility features in Skeleton.
FIXME
issues (reference)CssClasses
typeUtiliies
Local Storage Stores
Code Block
buttonCopy
renamedbutton
, default value is nowvariant-soft
buttonLabel
andbuttonCopied
for basic i18n supportblur
andshadow
Drawers
shadow
property for Drawer elementregionBackdrop|Drawer
props. Available as overrides as well!margin
in favor of backdroppadding
(provides better results)rounded-none
to disable)Lightswitch
Modals
/docs
- no longer part of the public packageToasts
.toast-actions
buttonDismissLabel
prop to override the dismiss button label textpreset
prop withbackground
property allowing any variant or background class.callback
function feature for the ToastSettings objectPopups
closeQuery
setting, to selectively choose elements that close the popup (replacesinteractive
)Menus
Menus
The text was updated successfully, but these errors were encountered: