Skip to content

Commit 42da468

Browse files
committed
toucan-core: Offset left-hand side due to button padding
1 parent db7bbb2 commit 42da468

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/eleven-crabs-type.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@crowdstrike/ember-toucan-core': patch
3+
---
4+
5+
Updated `<Form::Fields::FileInput` styling to match designs. This included updates to the disabled state as well as the list items.

packages/ember-toucan-core/src/components/form/file-input/list-item.hbs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<li
2-
class="bg-overlay-1 focus:outline-none focus:shadow-focus-outline m-0 flex items-center rounded-sm px-2 py-1 transition-shadow
2+
class="bg-overlay-1 focus:outline-none focus:shadow-focus-outline m-0 flex items-center justify-between rounded-sm px-2 py-1 transition-shadow
33
{{if @isDisabled 'text-disabled' 'text-titles-and-attributes'}}
44
{{if
55
@hasError
@@ -8,7 +8,8 @@
88
}}"
99
...attributes
1010
>
11-
<div class="mr-4 flex-1 py-1">
11+
{{! The `pl-2` added here is to offset the spacing added by the delete button below so that the horizontal axis spacing appears identical }}
12+
<div class="flex-1 py-1 pl-2">
1213
<p class="type-md-tight m-0 truncate p-0" data-file-name>{{@file.name}}</p>
1314
<span
1415
class="text-body-and-labels type-xs-tight mt-1 block"

0 commit comments

Comments
 (0)