]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
markdown fix and clarify history updates
authorAndy Hebrank <ahebrank@gmail.com>
Thu, 29 Dec 2016 15:48:43 +0000 (10:48 -0500)
committerAndy Hebrank <ahebrank@gmail.com>
Thu, 29 Dec 2016 15:48:43 +0000 (10:48 -0500)
docs/pages/tabs.md

index 4500dbaf0c922d4658b3d542763e6f493ae0bbcb..0dbd931a20bffa71e804be19d6d40f45e958e0a1 100644 (file)
@@ -146,13 +146,16 @@ Add the attribute `data-active-collapse="true"` to a tabstrip to collapse active
 
 ### Browser history
 
-The current state of the tabset is now recorded by adding a hash with the tab panel ID to the browser URL when a tab is opened. By default, tabs replace the browser history. Modify this behavior by using attribute `data-update-history="true"` to *append* to the browser history. In the latter case the browser back button will track each click that opens a tab panel.
+When the `data-deep-link="true"` attribute is set, the current state of the tabset is recorded by adding a hash with the tab panel ID to the browser URL when a tab opens. By default, tabs *update and replace* the browser history (meaning that the browser does not navigate). Modify this behavior by using attribute `data-update-history="true"` to *append* to the browser history. In the latter case the browser back button will track each click that opens a tab panel.
 
 By using deep linking (see below), the open state of a page's tabset may be shared by copy-pasting the browser URL.
 
 ### Deep linking
 
-Add the attribute `data-deep-link="true" to a tabstrip to allow anchoring to and opening a tab panel at page load.
+Add the attribute `data-deep-link="true"` to a tabstrip to:
+
+- modify the browser history when a tab is clicked
+- allow users to open a particular tab at page load with a hash-appended URL
 
 ```html_example
 <ul class="tabs" data-deep-link="true" data-tabs id="deeplinked-tabs">