Drupal core includes a vertical tabs implementation, but no support for horizontal client-side tabs. In Drupal 6 the Tabs module provided a client-side tabs API, but that module is not being continued for Drupal 7.
Tabs are a commonly used interface element. It would be valuable to have a horizontal tabs implementation alongside the other existing elements provided by Elements.
Provide a horizontal tabs implementation closely mirroring the vertical tabs provided by Drupal core.
This approach does not use the tabs library that ships with Jquery UI.
An initial commit was made in a new branch of Elements, 1034690-horizontal-tabs.
- Patch needs review by Elements maintainer.
- Write tests for horizontal tabs. Existing patch includes only a stub test. Should be feasible to crib and adapt from FormsElementsVerticalTabsFunctionalTest in core.
- Assess/address Chrome display issue noted in #72.
User interface changes
Will provide a new horizontal tabs user interface element.
Provides a new element type, 'horizontal_tabs'.
Original report by Dave Reid
The Field group module contains a 'Horizontal tabs' element that would be nice if it could be re-used by other modules easily. Also, not having summaries makes them easier to use as well.
|FAILED: [[SimpleTest]]: [MySQL] Failed to run tests: No valid tests specified. (Empty run-tests.sh --file argument.).|
|FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch elements_horizontal_tabs_1034690_56.patch. Unable to apply patch. See the log in the details link for more information.|
|FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch elements_horizontal_tabs_1034690_54.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.|
|FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch elements_horizontal_tabs_1034690_51.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.|
|PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).|