Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/block-library/src/tab/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function block_core_tab_render( array $attributes, string $content ): string {
$tag_processor->set_attribute( 'role', 'tabpanel' );
$tag_processor->set_attribute( 'aria-labelledby', 'tab__' . $tab_id );
$tag_processor->set_attribute( 'data-wp-bind--hidden', '!state.isActiveTab' );
$tag_processor->set_attribute( 'data-wp-bind--tabindex', 'state.tabIndexAttribute' );
$tag_processor->set_attribute( 'tabindex', 0 );

return (string) $tag_processor->get_updated_html();
}
Expand Down
3 changes: 0 additions & 3 deletions packages/block-library/src/tab/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
&:empty {
display: none !important;
}
&:not(.wp-block):focus {
outline: none;
}
}

.wp-block-tab.wp-block.has-background,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/tabs/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const { actions: privateActions, state: privateState } = store(
return activeTabIndex === tabIndex;
},
/**
* The value of the tabindex attribute.
* The value of the tabindex attribute for tab buttons.
* Only the active tab should be in the tab sequence.
*
* @type {number}
Expand Down
Loading