diff --git a/src/pg/patterns/core/tabs/index.pug b/src/pg/patterns/core/tabs/index.pug index 8a39849..1a957ba 100644 --- a/src/pg/patterns/core/tabs/index.pug +++ b/src/pg/patterns/core/tabs/index.pug @@ -1,36 +1,36 @@ -//- DS2 core (c) 2024 Alexander McIlwraith -//- Core licensed under CC BY-SA 4.0 - -extends ../../../core/_master-pattern -block content - - +h(0) - p A tabs component that provides different sections of content that are displayed one at a time when the user selects that information. - - +h(2) - p The tabbed user interface enables users to jump to their target section quickly. Tabs present like logically group information on the same page. Information should - - ul - li be logically chunked and ordered - li be arallel in nature - li show user's context - li obvious where they begin and end - - p Users should not need to see content of multiple tabs simultaneously and the user should be able to easily recognise where they are within the content. - - - +h(1) - p The tab module can be initialised by importing a file with the javascript module using import * as tabs from "../pg/patterns/layouts/tabs/_tabs.js"; contains a modularized version of the jQuery code, so that it can be called on demand. It is what is used in the design system so that the JavaScript can be called at run time (after loading content). - - tabset#tabs - pre.language-html(tab="html") - include _tabs.pug - pre.language-pug(tab="pug") - include _tabs.pp - pre.language-css(tab="css") - include tabs.css - pre.language-css(tab="scss") - include _tabs.scss - pre.language-css(tab="js") - include _tabs.js - +//- DS2 core (c) 2024 Alexander McIlwraith +//- Core licensed under CC BY-SA 4.0 + +extends ../../../core/_master-pattern +block content + + +h(0) + p A tabs component that provides different sections of content that are displayed one at a time when the user selects that information. + + +h(2) + p The tabbed user interface enables users to jump to their target section quickly. Tabs present like logically group information on the same page. Information should + + ul + li be logically chunked and ordered + li be parallel in nature + li show user's context + li obvious where they begin and end + + p Users should not need to see content of multiple tabs simultaneously and the user should be able to easily recognise where they are within the content. + + + +h(1) + p The tab module can be initialised by importing a file with the javascript module using import * as tabs from "../pg/patterns/layouts/tabs/_tabs.js"; contains a modularized version of the jQuery code, so that it can be called on demand. It is what is used in the design system so that the JavaScript can be called at run time (after loading content). + + tabset#tabs + pre.language-html(tab="html") + include _tabs.pug + pre.language-pug(tab="pug") + include _tabs.pp + pre.language-css(tab="css") + include tabs.css + pre.language-css(tab="scss") + include _tabs.scss + pre.language-css(tab="js") + include _tabs.js +