Skip to content

Commit b037ee9

Browse files
author
Melissa Thompson
committed
fix: side label text alignment
1 parent 55fb881 commit b037ee9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

components/progressbar/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,15 @@ governing permissions and limitations under the License.
201201
flex-grow: 0;
202202
margin-inline-end: var(--mod-progressbar-spacing-label-to-text, var(--spectrum-progressbar-spacing-label-to-text));
203203
margin-block-end: 0;
204+
margin-block-start: 0;
204205
}
205206

206207
.spectrum-ProgressBar-percentage {
207208
order: 3;
208209
text-align: end;
209210
margin-inline-start: var(--mod-spacing-progressbar-label-to-text, var(--spectrum-progressbar-spacing-label-to-text));
210211
margin-block-end: 0;
212+
margin-block-start: 0;
211213
}
212214
}
213215

components/progressbar/stories/progressbar.stories.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,25 @@ const Variants = (args) =>
231231
>
232232
${Sizes(args)}
233233
</div>
234+
</div>
235+
<div class="spectrum-Typography">
236+
${Typography({
237+
semantics: "detail",
238+
size: "l",
239+
content: ["Sizing - Side label"],
240+
})}
241+
<div
242+
style=${styleMap({
243+
display: "flex",
244+
flexDirection: "column",
245+
gap: ".3rem",
246+
})}
247+
>
248+
${Sizes({
249+
...args,
250+
labelPosition: "side",
251+
})}
252+
</div>
234253
</div>`
235254
: Template(args)}`;
236255

0 commit comments

Comments
 (0)