Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Currently, this repo is in Prerelease. When it is released, this project will ad
### Fixes

- Fixed the double application of styles when a custom svg is passed into the `Icon` component.
- Fixes the RTL styles for the dropdown arrow in the `Select` component.

## 4.1.4 (February 26, 2026)

Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/Select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { changelogData } from "./selectChangelogData";
componentName="Select"
summary="Input element that allows a user to pick a single value from a list of related options"
versionAdded="0.7.0"
versionLatest="4.0.0"
versionLatest="Prerelease"
/>

<Canvas of={SelectStories.WithControls} />
Expand Down
7 changes: 7 additions & 0 deletions src/components/Select/selectChangelogData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
import { ChangelogData } from "../../utils/ComponentChangelogTable";

export const changelogData: ChangelogData[] = [
{
date: "Prerelease",
version: "Prerelease",
type: "Update",
affects: ["Styles"],
notes: ["Fixes the RTL styles for the dropdown arrow."],
},
{
date: "2025-08-11",
version: "4.0.0",
Expand Down
13 changes: 13 additions & 0 deletions src/theme/components/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ const Select = defineMultiStyleConfig({
marginLeft:
!showLabel && labelPosition === "inline" ? "0" : `${labelWidth}px`,
},
/**
* Overriding Chakra default styles with styles that are RTL-aware to
* properly position the dropdown icon.
*
* To work properly, the `right` attribute needs to be unset before the
* `inset-inline-end` attribute is set. Additionally, `insetInlineEnd`
* which should map to `inset-inline-end` actually maps to `right`,
* which does not solve the problem. Maybe these are bugs in Chakra.
* */
".chakra-select__icon-wrapper": {
right: "unset",
"inset-inline-end": "var(--nypl-space-2)",
},
};
}
),
Expand Down