-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Tabs component… #9
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
Open
joSecret
wants to merge
12
commits into
1.x
Choose a base branch
from
32171-tabs
base: 1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c801c46
Implement Tabs component: add support for horizontal and vertical ori…
joSecret c631803
Update modules/edw_paragraphs_tabs/components/tabs/tabs.component.yml
joSecret 4bf9243
Update modules/edw_paragraphs_tabs/components/tabs/tabs.component.yml
joSecret d822403
Update modules/edw_paragraphs_tabs/components/tabs/tabs.twig
joSecret 0ca66bc
Update modules/edw_paragraphs_tabs/components/tabs/tabs.twig
joSecret a1273cb
Refactor template to use embed block for content
joSecret a64a4e9
Refactor tab template to include conditional div wrapper
joSecret 97688f2
Merge branch '1.x' into 32171-tabs
joSecret 83f5a15
Refactor Tabs component: update titles, adjust CSS properties, enhanc…
joSecret cee8982
Remove unused tabs_direction parameter from Tabs component template
joSecret 373f9af
Enhance Tabs component: add scrollable functionality, update utility …
joSecret 1a298f7
Change block name from 'content' to 'paragraph'
joSecret File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 0 additions & 36 deletions
36
modules/edw_paragraphs_tabs/components/horizontal-tabs/horizontal-tabs.component.yml
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
modules/edw_paragraphs_tabs/components/horizontal-tabs/horizontal-tabs.css
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
modules/edw_paragraphs_tabs/components/horizontal-tabs/horizontal-tabs.js
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
modules/edw_paragraphs_tabs/components/horizontal-tabs/horizontal-tabs.twig
This file was deleted.
Oops, something went wrong.
91 changes: 91 additions & 0 deletions
91
modules/edw_paragraphs_tabs/components/tabs/tabs.component.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| name: Tabs | ||
| libraryOverrides: | ||
| dependencies: | ||
| - core/drupal | ||
| - core/once | ||
|
|
||
| props: | ||
| type: object | ||
| properties: | ||
| # component variations | ||
| tabs_direction: | ||
| title: Tabs Direction | ||
| type: ['string', 'null'] | ||
| description: An array of tab directions. Use to define different styles or behaviors for the tabs. | ||
| default: 'horizontal' | ||
| enum: | ||
| - 'horizontal' | ||
| - 'vertical' | ||
| items: | ||
| type: string | ||
|
|
||
| tabs_scrollable: | ||
| title: Scrollable Tabs | ||
| type: boolean | ||
| description: A boolean value to determine if the tabs should be scrollable when there are many tab items. | ||
| default: true | ||
|
|
||
| # fields values | ||
| tabs_id: | ||
| title: Tabs ID | ||
| type: ['string', 'null'] | ||
| description: An optional ID for the Tabs component. | ||
|
|
||
| tabs_tabs: | ||
| type: ['array', 'string', 'null'] | ||
| title: Tabs | ||
| description: An array of tab items. Each item should contain a title and content. | ||
|
|
||
| # uc -> utility_classes | ||
| tabs_uc: | ||
| type: array | ||
| items: | ||
| type: string | ||
| title: Horizontal Tabs Utility Classes | ||
| description: An array of utility classes. Use to add extra classes or custom CSS classes over to this component. | ||
|
|
||
| tabs_list_uc: | ||
| type: array | ||
| items: | ||
| type: string | ||
| title: Tab List Utility Classes | ||
| description: An array of utility classes. Use to add extra classes or custom CSS classes over to the tab list element. | ||
|
|
||
| tabs_button_uc: | ||
| type: array | ||
| items: | ||
| type: string | ||
| title: Tab Button Utility Classes | ||
| description: An array of utility classes. Use to add extra classes or custom CSS classes over to the tab button element. | ||
|
|
||
| tabs_panel_uc: | ||
| type: array | ||
| items: | ||
| type: string | ||
| title: Tab Panel Utility Classes | ||
| description: An array of utility classes. Use to add extra classes or custom CSS classes over to this component. | ||
|
|
||
| # att -> attributes | ||
| tabs_att: | ||
| type: Drupal\Core\Template\Attribute | ||
| title: Attributes | ||
| description: A list of HTML attributes for the Horizontal Tabs. | ||
|
|
||
| tabs_list_att: | ||
| type: Drupal\Core\Template\Attribute | ||
| title: Tab List Attributes | ||
| description: A list of HTML attributes for the tab list element. | ||
|
|
||
| # Slots. | ||
| slots: | ||
| slot_content: | ||
| title: Content | ||
| description: Default content text for the Tabs component. | ||
|
|
||
| slot_btn_prev: | ||
| title: Previous Button | ||
| description: Content for the previous button in the scrollable tabs. | ||
|
|
||
| slot_btn_next: | ||
| title: Next Button | ||
| description: Content for the next button in the scrollable tabs. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.