discourse/app/assets/stylesheets
Joffrey JAFFEUX cbc0ece6e8
DEV: <DSelect /> (#30224)
`<DSelect />` is a wrapper similar to our existing `<DButton />` over the html element `<select>`. The code is ported from form kit which is now directly using `<DSelect />`. Note this component has also been used in edit topic timer modal.

This component is recommended for a small list of text items (no icons, no rich formatting...).

Usage:

```gjs
<DSelect class="my-select" @onChange={{this.handleChange}} as |select|>
  <select.Option @value="foo" class="my-favorite-option">Foo</select.Option>
  <select.Option @value="bar">Bar</select.Option>
</DSelect>
```

This commit comes with a set of assertions:

```gjs
import dselect from "discourse/tests/helpers/d-select-helper";
import { select } from "@ember/test-helpers";

assert
  .dselect(".my-select")
  .hasOption({ value: "bar", label: "Bar" })
  .hasOption({ value: "foo", label: "Foo" })
  .hasNoOption("baz");

await select(".my-select", "foo");

assert.dselect(".my-select").hasSelectedOption({value: "foo", label: "Foo"});
```
2024-12-13 10:40:06 +01:00
..
common DEV: <DSelect /> (#30224) 2024-12-13 10:40:06 +01:00
desktop Cleanup mobile topic footer area (#30132) 2024-12-11 14:59:37 +01:00
mobile UX: increase button sizes and timeline size (#30240) 2024-12-12 16:09:44 +01:00
vendor
admin_rtl.scss
admin.scss
color_definitions.scss UX: Multiple codeblocks fixes (#29898) 2024-11-22 13:52:23 -06:00
common.scss
desktop_rtl.scss
desktop.scss
embed.scss
ember_cli.scss
mobile_rtl.scss
mobile.scss
publish.scss
qunit-custom.scss
qunit.scss
wcag.scss Cleanup mobile topic footer area (#30132) 2024-12-11 14:59:37 +01:00
wizard_rtl.scss
wizard.scss