discourse/app/assets/stylesheets/common
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
..
admin FIX: Background color for settings overriden filter (#30221) 2024-12-12 10:27:37 +11:00
base UX: increase button sizes and timeline size (#30240) 2024-12-12 16:09:44 +01:00
components DEV: <DSelect /> (#30224) 2024-12-13 10:40:06 +01:00
float-kit UX: DMenu list buttons default styling (#29250) 2024-10-21 05:05:38 +02:00
form-kit DEV: <DSelect /> (#30224) 2024-12-13 10:40:06 +01:00
foundation UX: Make radio buttons respect forum's accent color (#30235) 2024-12-11 15:22:00 -08:00
login UX: Add progress bar to the registration flow (#27694) 2024-08-28 08:43:39 -03:00
modal FEATURE: Allow to customize the signup form descriptions (#29959) 2024-11-27 14:23:14 -03:00
select-kit DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
table-builder DEV: removes legacy modal code (#28047) 2024-07-24 18:07:17 +02:00
d-editor.scss DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
font-variables.scss UX: ensure ios font size is always min 16px with max() fn (#29270) 2024-10-18 05:26:12 +02:00
input_tip.scss UX: Hide the error tooltip when focusing the topic title (#27531) 2024-06-19 11:55:29 -03:00
loading-slider.scss FIX: better supports ipad and hub footer nav (#25518) 2024-02-01 10:24:44 +01:00
post-action-feedback.scss FIX: allow styling of feedback on mobile (#25072) 2023-12-30 08:57:16 +11:00
printer-friendly.scss DEV: Improve method of presenting link clicks (#29453) 2024-10-31 12:44:08 -07:00
software-update-prompt.scss UX: adjust software update banner for headerless pages (#28496) 2024-08-22 16:51:26 -04:00
topic-entrance.scss DEV: Implement glimmer topic-list (#26743) 2024-05-21 14:36:15 +02:00
topic-timeline.scss Cleanup mobile topic footer area (#30132) 2024-12-11 14:59:37 +01:00
whcm.scss A11Y: Improve accessibility in WHCM themes (#18606) 2022-10-17 07:07:46 -07:00