starlight-sidebar-topics-dropdown 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # starlight-sidebar-topics-dropdown
2
2
 
3
+ ## 0.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#80](https://github.com/trueberryless-org/starlight-sidebar-topics-dropdown/pull/80) [`c497245`](https://github.com/trueberryless-org/starlight-sidebar-topics-dropdown/commit/c497245d963d5c4f2e0a1e458860f2ffad836eaf) Thanks [@VisualEhrmanntraut](https://github.com/VisualEhrmanntraut)! - Fixed bug introduced by AI hallucination while trying to add RTL layout support
8
+
3
9
  ## 0.5.3
4
10
 
5
11
  ### Patch Changes
@@ -106,6 +106,11 @@ const currentTopic = topics.find((topic) => topic.isCurrent);
106
106
  padding: 0.3rem 0.5rem;
107
107
  cursor: pointer;
108
108
  width: 100%;
109
+ --starlight-sidebar-topics-dropdown-gradient-direction: to right;
110
+ }
111
+
112
+ :global(html[dir="rtl"]) .starlight-sidebar-topics-dropdown-button {
113
+ --starlight-sidebar-topics-dropdown-gradient-direction: to left;
109
114
  }
110
115
 
111
116
  .starlight-sidebar-topics-dropdown-button::before {
@@ -122,7 +127,7 @@ const currentTopic = topics.find((topic) => topic.isCurrent);
122
127
  )::before {
123
128
  content: "";
124
129
  background-image: linear-gradient(
125
- to inline-end,
130
+ var(--starlight-sidebar-topics-dropdown-gradient-direction),
126
131
  var(--sl-color-text-accent) calc(1.4rem + 16px + 2px),
127
132
  var(--sl-color-gray-5) 0
128
133
  );
@@ -132,7 +137,7 @@ const currentTopic = topics.find((topic) => topic.isCurrent);
132
137
  .starlight-sidebar-topics-dropdown-button-icon
133
138
  ) {
134
139
  background: linear-gradient(
135
- to inline-end,
140
+ var(--starlight-sidebar-topics-dropdown-gradient-direction),
136
141
  var(--sl-color-text-accent) calc(1.4rem + 16px),
137
142
  var(--sl-color-gray-6) 0
138
143
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-sidebar-topics-dropdown",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Dropdown topic list for the Starlight Sidebar Topics plugin.",
5
5
  "keywords": [
6
6
  "starlight",