Skip to content

Commit

Permalink
toucan-core: Offset left-hand side due to button padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ynotdraw committed Jun 29, 2023
1 parent db7bbb2 commit 42da468
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-crabs-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@crowdstrike/ember-toucan-core': patch
---

Updated `<Form::Fields::FileInput` styling to match designs. This included updates to the disabled state as well as the list items.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li
class="bg-overlay-1 focus:outline-none focus:shadow-focus-outline m-0 flex items-center rounded-sm px-2 py-1 transition-shadow
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
{{if @isDisabled 'text-disabled' 'text-titles-and-attributes'}}
{{if
@hasError
Expand All @@ -8,7 +8,8 @@
}}"
...attributes
>
<div class="mr-4 flex-1 py-1">
{{! The `pl-2` added here is to offset the spacing added by the delete button below so that the horizontal axis spacing appears identical }}
<div class="flex-1 py-1 pl-2">
<p class="type-md-tight m-0 truncate p-0" data-file-name>{{@file.name}}</p>
<span
class="text-body-and-labels type-xs-tight mt-1 block"
Expand Down

0 comments on commit 42da468

Please sign in to comment.