demarches-normaliennes/app/views/shared/dossiers/editable_champs
Colin Darie 44823ddd32 style(champs): reduce width of small inputs
Closes #7427
Cf #7387

Quelques considérations :

- l'attribut `size` ne correspond pas exactement au nombre de caractères
  qui peut être saisi (à moins d'utiliser une font monospace). On doit
  donc utiliser une valeur légèrement supérieure pour être sûr que
  les combinaisons navigateurs/police/taille soient suffisantes.

- on essaye d'harmoniser un peu les largeurs possibles, donc on utilise
  un size=20 qui correspond bien à plusieurs champs concernés

- délicat d'harmoniser avec max-width car les champs de type number &
  date ajoutent des outils/icones à droite de l'input

J'en ai profité pour définir de vrais placeholders pour les champs de
type number.
2022-07-18 09:48:35 +02:00
..
_address.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_annuaire_education.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_carte.html.haml refactor(turbo): champ carte use turbo 2022-05-04 14:11:43 +02:00
_champ_label.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_champ_label_content.html.haml feat(revisions): rebase dossiers brouillons 2021-10-20 17:26:09 +02:00
_checkbox.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_civilite.html.haml i18n: cleanup gender locales 2021-09-16 07:51:56 -05:00
_cnaf.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_communes.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_date.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_datetime.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_decimal_number.html.haml style(champs): reduce width of small inputs 2022-07-18 09:48:35 +02:00
_departements.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_dgfip.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_dossier_link.html.haml style(champs): reduce width of small inputs 2022-07-18 09:48:35 +02:00
_drop_down_list.html.haml fix(linked_dropdown/dropdown): for dropdown_list, drop blank option because rails add it when the field is required. kind of same behaviour for linked_dropdown_list [but requires to manage it on the front too] 2022-07-11 14:47:26 +02:00
_drop_down_other_input.html.haml refactor(champ): fix drop_down_list champ 2022-05-03 16:14:54 +02:00
_editable_champ.html.haml feat(dossier): check conditions on en construction dossier 2022-07-13 10:49:17 +02:00
_email.html.haml style(champ): add placeholders for email, iban, phone, siret champs 2022-07-11 17:16:19 +02:00
_engagement.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_etablissement_titre.html.haml siret: make etablissement styled and visible 2018-07-30 17:49:00 +02:00
_explication.html.haml [Fix #1801] use the new string_to_html method 2018-05-24 18:05:41 +02:00
_header_section.html.haml Show section numbers only if none of sections start with numbers 2021-04-06 10:45:16 +01:00
_iban.html.haml style(champs): reduce width of small inputs 2022-07-18 09:48:35 +02:00
_integer_number.html.haml style(champs): reduce width of small inputs 2022-07-18 09:48:35 +02:00
_linked_drop_down_list.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_mesri.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_multiple_drop_down_list.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_number.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_pays.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_phone.html.haml style(champ): add placeholders for email, iban, phone, siret champs 2022-07-11 17:16:19 +02:00
_piece_justificative.html.haml refactor(attachment): use new components 2022-05-17 16:08:47 +02:00
_pole_emploi.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_regions.html.haml a11y(champs): generalize describedby and update to use new Combo props 2022-01-05 12:33:40 +01:00
_repetition.html.haml fix(turbo): use link_to instead of submit button 2022-05-10 13:39:33 +02:00
_repetition_row.html.haml fix(turbo): use link_to instead of submit button 2022-05-10 13:39:33 +02:00
_siret.html.haml style(champs): reduce width of small inputs 2022-07-18 09:48:35 +02:00
_text.html.haml Revert "feat(champ): customizable placeholders for text & textarea champs" 2022-07-12 11:37:58 +02:00
_textarea.html.haml Revert "feat(champ): customizable placeholders for text & textarea champs" 2022-07-12 11:37:58 +02:00
_titre_identite.html.haml refactor(attachment): use new components 2022-05-17 16:08:47 +02:00
_yes_no.html.haml fix(champs): remove redundant description 2021-10-13 13:55:09 +02:00