-
-
Notifications
You must be signed in to change notification settings - Fork 306
Adjust text input design #4234
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
base: 4-dev
Are you sure you want to change the base?
Adjust text input design #4234
Conversation
adrianthedev
left a comment
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.
| attr_reader :loading | ||
|
|
||
| def loading? | ||
| !!Avo::ExecutionContext.new(target: loading, record: record, view: view, resource: resource).handle |
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.
Why the !!?
| !!Avo::ExecutionContext.new(target: loading, record: record, view: view, resource: resource).handle | |
| !!Avo::ExecutionContext.new(target: loading, record: record, view: view, resource: resource).handle |
| module IsLoading | ||
| extend ActiveSupport::Concern | ||
|
|
||
| attr_reader :loading |
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.
do we ever add this loading attribute? I don't recall having that.
Ideally, we should be triggering loading with just a class or HTML attribute, not by reloading the field from the server.
| <%= content %> | ||
| <div class="field-wrapper__input"> | ||
| <%= content %> | ||
| <%= tag.span class: "input__spinner", "aria-hidden": "true" if @field.loading? %> |
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.
Can we add the spinner as an after element and not have to depend on adding an extra element on the page?


Description
polish design specifications for text inputs based on figma https://www.figma.com/design/Enmp0p0u8wFG0SuysUDszX/Avo-Design-System?node-id=2934-86442&m=dev
Checklist:
Screenshots & recording