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

chore(tabs): docs page (VIV-2108) #2038

Merged
merged 8 commits into from
Dec 4, 2024
Merged

chore(tabs): docs page (VIV-2108) #2038

merged 8 commits into from
Dec 4, 2024

Conversation

TaylorJ76
Copy link
Contributor

No description provided.

@TaylorJ76 TaylorJ76 changed the title chore: tabs docs page chore(tabs): docs page (VIV-2108) Nov 29, 2024
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d61b119) to head (1fc6430).
Report is 1195 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #2038     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files          123       367    +244     
  Lines         1562      8475   +6913     
  Branches       108      1260   +1152     
===========================================
+ Hits          1562      8475   +6913     
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rachelbt rachelbt left a comment

Choose a reason for hiding this comment

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

wasn't sure that it will be OK to unify tabs and tab together but it looks great!
Do you think it would be nice to add a use case where there are a lot of tabs and there is a scroll shadow?


```html preview full
<vwc-tabs>
<vwc-tab shape="rounded" label="Rounded"></vwc-tab>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not so sure about having them together in the same tabs wrapper. Its a bad practice that we do not want them to use. Having said that- it is useless to have 2 sets of tabs.
Maybe we can use a drop down that changes the shape?
Or a code sample with no preview and an image to illustrate the difference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a note after the example to say how they shouldn't be used together.


## Gutters

Use the `gutters` attribute on the **Tabs** component to control the spacing inside the Tab Panels. Below it is set to `none`.
Copy link
Contributor

Choose a reason for hiding this comment

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

gutters can have either none or small (that are the default). I think that this is not clear enough here


```js
<script type="module">import '@vonage/vivid/tabs';</script>
Copy link
Contributor

Choose a reason for hiding this comment

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

theres an unneeded space here:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't seem to be much we can do about this. Happens in other places too.

| -------------------- | ---------------------------------- | -------------------------------------------------------------------------------------- |
| **activeid** | `string` | Match with an `id` set on a Tab to mark it as active on initial load |
| **connotation** | `accent` (default), `cta` | Sets the connotation color of the active tab |
| **gutters** | `none` (default), `small` | Sets the spacing inside the Tab Panels |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| **gutters** | `none` (default), `small` | Sets the spacing inside the Tab Panels |
| **gutters** | `none`, `small` (default) | Sets the spacing inside the Tab Panels |

| Name | Type | Description |
| ----------------- | ---------------------------- | ------------------------------------ |
| **disabled** | `boolean` | Sets the disabled state |
| **icon-trailing** | `boolean` | Places the icon after the label text |
Copy link
Contributor

Choose a reason for hiding this comment

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

icon is missing

@TaylorJ76 TaylorJ76 merged commit c697d10 into main Dec 4, 2024
15 checks passed
@TaylorJ76 TaylorJ76 deleted the VIV-2108-docs-tabs branch December 4, 2024 08: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