Skip to content
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

Update Input and InputWrapper #311

Merged
merged 17 commits into from
May 9, 2024
Merged

Update Input and InputWrapper #311

merged 17 commits into from
May 9, 2024

Conversation

PaulioRandall
Copy link
Collaborator

What does this change?

Updates:

  1. Input to allow textarea type.
  2. Input to pass $$restProps to the input element to account for differences in properties for different input types.
  3. Input to export the bindable input element value.
  4. Input to allow a format value function to be passed that formats the value when unfocusing the input.
  5. InputWrapper to allow tooltip hints in the label.
  6. Input and InputWrapper with aria and accessibility attributes.

Why?

So the input is usable and accessible with HTML forms and multiple input types.

How is it tested?

Storybook

How is it documented?

Stroybook

Is it complete?

  • Have you included changeset file?

@PaulioRandall PaulioRandall marked this pull request as ready for review May 8, 2024 11:00
@PaulioRandall
Copy link
Collaborator Author

@jamesscottbrown I just realized I need to update other components using the <InputWrapper>. Will let you know when I've done that.

@PaulioRandall PaulioRandall marked this pull request as draft May 8, 2024 11:03
@PaulioRandall PaulioRandall marked this pull request as ready for review May 8, 2024 14:06
@PaulioRandall
Copy link
Collaborator Author

@jamesscottbrown I just realized I need to update other components using the <InputWrapper>. Will let you know when I've done that.

@jamesscottbrown Good to review now.

@jamesscottbrown
Copy link
Collaborator

This looks ok - I'll add some docs then merge.

@jamesscottbrown jamesscottbrown merged commit 578c08b into dev May 9, 2024
1 check passed
@jamesscottbrown jamesscottbrown deleted the update-text-inputs branch May 9, 2024 12:24
jamesscottbrown added a commit that referenced this pull request May 13, 2024
* Increase text size on tooltips (#299)

* Storybook component descriptions (#300)

* Move component descriptions so they display on autodocs generated page

* move component descriptions to JSDocs

* set props for default story

* fix storybook controls so that they update component in default stories (#298)

* fix storybook controls so that they update component in default stories

* constrain tab orientation control to permitted values

* Update Checkbox & CheckboxGroup with tooltips (#296)

* Align text and icon in tooltip trigger (#306)

* align text and icon in tooltip trigger

* add changeset file

* separate out stories for CheckboxGroup and RadioButtonGroup (#310)

* align contents of MapControlGroup depending on position (#302)

* fix formatting of markdown table in docs (#308)

* fix formatting of markdown table in docs

See storybookjs/storybook#22613 (comment)

* re-format with prettier

* Improve docs (#312)

* Adds name prop to checkbox and checkbox group options (#313)

* Adds PageMetadata component (#307)


---------

Co-authored-by: James Scott-Brown <James.Scott-Brown@london.gov.uk>

* replace use of deprecated <Meta> tag in stories (#315)

* Update Input and InputWrapper (#311)

---------

Co-authored-by: James Scott-Brown <James.Scott-Brown@london.gov.uk>

* Add placeholder image component (#319)


---------

Co-authored-by: James Scott-Brown <James.Scott-Brown@london.gov.uk>

* fix import of PlaceholderImage

* Add analytics and cookie consent component (#317)

---------

Co-authored-by: James Scott-Brown <James.Scott-Brown@london.gov.uk>

* Add a CopyButton component (#321)

---------

Co-authored-by: James Scott-Brown <James.Scott-Brown@london.gov.uk>

* [docs] add docs for Select component (#320)

* modify Geocoder doc strings (#322)

mostly fixing multi-line comments, and making some minor edits

* [docs] make toaster docs more like that of other components (#323)

* [docs] add more docs for Header components (#325)

* Fix missing key in checkboxgroup each block (#324)

* [docs] Add some docs for the AppShell (#326)

* [docs] add docs for sidebar (#327)

---------

Co-authored-by: Paul Williams <paul.williams@london.gov.uk>

* auto-format with prettier

* add some docs for color legend component (#329)

---------

Co-authored-by: Paul Williams <paul.williams@london.gov.uk>
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.

None yet

2 participants