Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#2513 closed enhancement (fixed)

Accordion: classNames should be default

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


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>');

Change History (9)

comment:1 Changed 9 years ago by neojp

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

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

comment:2 Changed 9 years ago by paul

  • Owner changed from paul to joern

comment:3 Changed 9 years ago by scottgonzalez

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.

comment:4 Changed 9 years ago by neojp

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.

comment:5 Changed 9 years ago by paul

  • Component changed from ui.core to ui.accordion
  • Version set to 1.5b4

comment:6 Changed 9 years ago by paul

  • Version changed from 1.5b4 to 1.5

comment:7 Changed 9 years ago by Cloudream

  • Milestone set to TDB

comment:8 Changed 8 years ago by jzaefferer

  • Resolution set to fixed
  • Status changed from new to closed

Fixed as part of #3646

comment:9 Changed 4 years ago by scottgonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.