GeezerVison is showing github.com — fix(admin): expose active settings tab to assistive technologies · axeptio/wordpress-plugin@103ca3c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/main/tabs.php +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ class="axeptio-tab-pill absolute inset-0 bg-amber-400" |
24 | 24 | :style="'clip-path: ' + clip" |
25 | 25 | ></div> |
26 | 26 | <?php foreach ( $data->tab_items as $axeptio_tab_item_key => $axeptio_tab_item ) : ?> |
27 | | - <button type="button" data-tab="<?php echo esc_attr( $axeptio_tab_item_key ); ?>" @click="currentTab = '<?php echo esc_attr( $axeptio_tab_item_key ); ?>'" class="relative z-10 rounded-full px-3.5 py-2.5 text-sm font-semibold text-gray-900 transition-colors hover:text-gray-700 <?php echo $axeptio_tab_item_key === array_key_first( $data->tab_items ) ? 'axeptio-tab--initial' : ''; ?>"> |
| 27 | + <button type="button" data-tab="<?php echo esc_attr( $axeptio_tab_item_key ); ?>" @click="currentTab = '<?php echo esc_attr( $axeptio_tab_item_key ); ?>'" aria-pressed="<?php echo $axeptio_tab_item_key === array_key_first( $data->tab_items ) ? 'true' : 'false'; ?>" :aria-pressed="currentTab === '<?php echo esc_attr( $axeptio_tab_item_key ); ?>'" class="relative z-10 rounded-full px-3.5 py-2.5 text-sm font-semibold text-gray-900 transition-colors hover:text-gray-700 <?php echo $axeptio_tab_item_key === array_key_first( $data->tab_items ) ? 'axeptio-tab--initial' : ''; ?>"> |
28 | 28 | <?php echo esc_html( $axeptio_tab_item ); ?> |
29 | 29 | </button> |
30 | 30 | <?php endforeach; ?> |
|