-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add container to textarea to resolve style issues and add padding to input to match #253
Conversation
🦋 Changeset detectedLatest commit: c18922f The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Preview URLsEnv: preview |
1c5af8f
to
c0a32ce
Compare
@@ -44,14 +44,14 @@ export default class ToucanFormTextareaControlComponent extends Component<Toucan | |||
} | |||
|
|||
if (isReadOnly) { | |||
return 'focus:shadow-focus-outline bg-surface-xl shadow-read-only-outline text-titles-and-attributes'; | |||
return 'focus-within:shadow-focus-outline bg-surface-xl shadow-read-only-outline text-titles-and-attributes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to switch to focus-within
due to using a container now
@@ -158,7 +158,6 @@ export default class ToucanFormInputFieldComponent extends Component<ToucanFormI | |||
field.errorId | |||
}}" | |||
aria-invalid={{if @error "true"}} | |||
class="w-full" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Controls now specify w-full
so this isn't needed anymore
@@ -19,17 +19,17 @@ module('Integration | Component | Fields | Textarea', function (hooks) { | |||
assert | |||
.dom('[data-hint]') | |||
.doesNotExist( | |||
'Expected hint block not to be displayed as a hint was not provided' | |||
'Expected hint block not to be displayed as a hint was not provided', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently some post-prettier-v3-upgrade formatting that was missed 🤷
e3fb4fd
to
a10f2f1
Compare
<div class='w-96'> | ||
<Form::Controls::Input /> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these are now full-width by default, adding the container with the fixed width so they don't look ridiculous 😂
a10f2f1
to
d707900
Compare
d707900
to
c18922f
Compare
🚀 Description
input
padding to match the designstextarea
so that the drag handle and long text does not collide with the focus and focus+error shadows.input
as well (px-2
). Autocomplete and Multiselect already had these classes specified, so now everything is consistent 🎉🔬 How to Test
0.5rem
viapx-2
📸 Images/Videos of Functionality