Skip to content

Tab plugin should use a class selector instead of a ul tag selector #17754

Closed

Description

@Invis1ble

Hello. I want to use <ol> instead of <ul>, but in the Tab plugin tag name is hardcoded.
https://github.com/twbs/bootstrap/blob/master/js/tab.js#L28

var $ul      = $this.closest('ul:not(.dropdown-menu)')

Activity

  1. cvrebert commented on Oct 1, 2015

    @cvrebert
    Collaborator

    I want to use <ol> instead of <ul>

    Why?

  2. changed the title [-]Tag name hardcoded[/-] [+]Tab plugin only works with <ul>, not <ol>[/+] on Oct 1, 2015
  3. added
    jsJavaScript or TypeScript sources and plugins
    v3Legacy: v3
    on Oct 1, 2015
  4. Invis1ble commented on Oct 1, 2015

    @Invis1ble
    Author

    Because I have an ordered list.

  5. cvrebert commented on Oct 1, 2015

    @cvrebert
    Collaborator

    Because I have an ordered list.

    And you have an ordered list because...?

  6. added
    confirmedReproduced with a reduced test case
    v4v4, the frozen docs on gh-pages
    on Oct 1, 2015
  7. changed the title [-]Tab plugin only works with <ul>, not <ol>[/-] [+]Tab plugin should use a class selector instead of a ul tag selector[/+] on Oct 1, 2015
  8. Invis1ble commented on Oct 1, 2015

    @Invis1ble
    Author

    And you have an ordered list because...?

    Because it is an ordered dataset from database and it should be displayed as an orderd list of tabs. It is semantic, isn't it?

  9. added a commit that references this issue on Aug 4, 2016
    dc1b4e7
  10. reopened this on Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedReproduced with a reduced test casejsJavaScript or TypeScript sources and pluginsv4v4, the frozen docs on gh-pages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions