mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 05:26:18 +08:00
cb59681d86
Major changes included: - better support for screen readers - trapping focus in modals - better tabbing order in composer - alerts on no content found/number of items found - better autofocus in modals - mini-tag-chooser is now a multi-select component - each multi-select-component will now display selection on one row
22 lines
708 B
JavaScript
22 lines
708 B
JavaScript
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
|
import layout from "select-kit/templates/components/multi-select/multi-select-header";
|
|
import { computed } from "@ember/object";
|
|
import { reads } from "@ember/object/computed";
|
|
|
|
export default SelectKitHeaderComponent.extend({
|
|
tagName: "summary",
|
|
classNames: ["multi-select-header"],
|
|
layout,
|
|
|
|
caretUpIcon: reads("selectKit.options.caretUpIcon"),
|
|
caretDownIcon: reads("selectKit.options.caretDownIcon"),
|
|
caretIcon: computed(
|
|
"selectKit.isExpanded",
|
|
"caretUpIcon",
|
|
"caretDownIcon",
|
|
function () {
|
|
return this.selectKit.isExpanded ? this.caretUpIcon : this.caretDownIcon;
|
|
}
|
|
),
|
|
});
|