Skip to main content

Bug Tracker

Side navigation

#2513 closed enhancement (invalid)

Opened March 14, 2008 03:23PM UTC

Closed July 12, 2008 04:39PM UTC

Accordion: classNames should be default

Reported by: neojp Owned by: joern
Priority: trivial Milestone:
Component: ui Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Theme related classNames should be added to the accordions by default.

$(container).addClass("ui-accordion-container ui-accordion");
// add classNames and spans to header
options.headers.addClass('ui-accordion-link').prepend('<span class="ui-accordion-left"></span>').append('<span class="ui-accordion-right"></span>');
Attachments (2)
  • flora.accordion.diff (1.1 KB) - added by neojp March 14, 2008 03:30PM UTC.

    accordion flora theme, position relative added to headers

  • ui.accordion_theme.diff (1.0 KB) - added by neojp March 14, 2008 03:24PM UTC.

    UI Accordion: add classnames, and spans for themes

Change History (5)

Changed March 14, 2008 03:28PM UTC by neojp comment:1

Talking about a theming issue, headers should be relative positioned.

ul.ui-accordion-container li a.ui-accordion-link { position: relative }

Changed March 14, 2008 04:35PM UTC by paul comment:2

owner: pauljoern

Changed March 16, 2008 04:06AM UTC by scott.gonzal comment:3

Why are both .ui-accordion and .ui-accordion-container needed if they're applied to the same element?

Also, why is relative positioning required? I'm asking because this was actually removed in [4420] to fix #2127.

Changed March 23, 2008 06:36PM UTC by neojp comment:4

postion:relative; is not that necessary if you don't append the header spans. If they are not positioned inside a reltive they will appear on the top right corner of the document.

Regarding this,

$(container).addClass("ui-accordion-container ui-accordion");

I'm not sure why the accordion plugin uses 2 different classNames for the same element, since it never uses one. I think we could get rid of one and change the css styles to match the className choosen.

Changed July 12, 2008 04:39PM UTC by joern comment:5

resolution: → invalid
status: newclosed

The second class got removed, other issues are now on the UI bugtracker.