Skip to content

Conversation

@Mihai-Munteanu
Copy link

@Mihai-Munteanu Mihai-Munteanu commented Jan 30, 2026

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:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots & recording

Screenshot 2026-02-10 at 12 40 33 Screenshot 2026-02-10 at 12 39 54 Screenshot 2026-02-10 at 12 39 42

@linear
Copy link

linear bot commented Jan 30, 2026

Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. the text input size doesn't match figma. can you pease cehck the others too? (don't set the height. see what's wrong with the sizes (padding, line height, font-size))
  2. let's try to add the spinner element as an after element.
CleanShot 2026-01-30 at 11 19 04@2x CleanShot 2026-01-30 at 11 19 13@2x

attr_reader :loading

def loading?
!!Avo::ExecutionContext.new(target: loading, record: record, view: view, resource: resource).handle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the !!?

Suggested change
!!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
Copy link
Collaborator

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? %>
Copy link
Collaborator

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?

@Mihai-Munteanu Mihai-Munteanu marked this pull request as draft February 11, 2026 13:18
@Mihai-Munteanu Mihai-Munteanu marked this pull request as ready for review February 11, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants