Closed alexookah closed 2 months ago
Name | Link |
---|---|
Latest commit | 2e8359ce963647a44f1ad281451da6bbf8920ce6 |
@alexookah is attempting to deploy a commit to the scottyzen's projects Team on Vercel.
A member of the Team first needs to authorize it.
This also fixes this issue https://github.com/scottyzen/woonuxt/issues/145 @scottyzen
This PR introduces the new Tooltip component to enhance the user interface by providing helpful tooltips on color selection elements. It also refactors how the dropdown and selection options display their names, ensuring consistency and readability by dynamically sourcing display names from attribute terms.
Changes Introduced
Tooltip Component:
Implemented a new Tooltip component designed to provide hover information for color options. Added support for positioning the tooltip below the target element with a clear arrow to indicate the source of the information.
Standardized Attribute Display:
Updated dropdown and selection components to display attribute names from terms.nodes. Ensured that both dropdowns and selection elements display the same human-readable names instead of relying on option slugs.
Removed the usage of the capitalize class from the dropdown options and other components. Now, option names are rendered directly from terms.nodes, reflecting how attributes are defined in WordPress. This ensures uniformity across various parts of the UI.
Terms Instead of options:
I saw that options were not ordered. So I defined the orderType in
terms(where: {orderby: TERM_ORDER})
And now the order of the variations is much better. I also had to use the terms.nodes instead of options to use the ordered array to populate the attributes.Example Attributes in Shop:
Screenshots Tooltip Component
Created a Tooltip component: