Skip to content

Commit

Permalink
chore: uses makeup-tabs module
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcburnie committed Apr 30, 2024
1 parent bcf243d commit cbd09f1
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 220 deletions.
4 changes: 2 additions & 2 deletions _js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import Pagination from './pagination.js';
import Pulldown from './pulldown.js';
import StarRating from './star-rating.js';
import Switch from 'makeup-switch';
import Tabs from './tabs.js';
import Tabs from 'makeup-tabs';
import Tile from './tile.js';
import Tooltip from './tooltip.js';
import LightboxDialog from 'makeup-lightbox-dialog';
Expand Down Expand Up @@ -305,7 +305,7 @@ document.addEventListener('DOMContentLoaded', function() {
});

document.querySelectorAll('.tabs').forEach(function(widgetEl) {
widgetEl.addEventListener('tabs-change', logEvent);
widgetEl.addEventListener('makeup-tabs-change', logEvent);

pageWidgets.push(new Tabs(widgetEl, {
autoSelect: (widgetEl.dataset.autoSelect === 'true')
Expand Down
194 changes: 0 additions & 194 deletions _js/tabs.js

This file was deleted.

23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"makeup-roving-tabindex": "~0.6.0",
"makeup-snackbar-dialog": "~0.1.0",
"makeup-switch": "~0.2.0",
"makeup-tabs": "^0.0.1",
"makeup-toast-dialog": "~0.1.0",
"mini-css-extract-plugin": "^2.7.7",
"nodemon": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion static/browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/browser.js.map

Large diffs are not rendered by default.

29 changes: 8 additions & 21 deletions static/skin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/skin.css.map

Large diffs are not rendered by default.

0 comments on commit cbd09f1

Please sign in to comment.