Skip to content

Commit 9c6057f

Browse files
authored
fix: set text alignment for keyboard component (#8486)
* fix: set text alignment for keyboard component * fix S2 as well
1 parent 3bc8eea commit 9c6057f

File tree

2 files changed

+2
-0
lines changed
  • packages

2 files changed

+2
-0
lines changed

packages/@adobe/spectrum-css-temp/components/menu/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ governing permissions and limitations under the License.
249249
/* keyboard shortcuts are always ASCII, so use base font */
250250
font-family: var(--spectrum-font-family-base);
251251
unicode-bidi: plaintext;
252+
text-align: end;
252253
}
253254

254255
.spectrum-Menu-chevron {

packages/@react-spectrum/s2/src/Menu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ let keyboard = style<{size: 'S' | 'M' | 'L' | 'XL', isDisabled: boolean}>({
293293
marginStart: 8,
294294
font: 'ui',
295295
fontWeight: 'light',
296+
textAlign: 'end',
296297
color: {
297298
default: 'gray-600',
298299
isDisabled: 'disabled',

0 commit comments

Comments
 (0)