tapis-project / authenticator

BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

IDP Form Has Unexpected Markup #39

Closed wesleyboar closed 10 months ago

wesleyboar commented 10 months ago

Overview

Radio buttons on dev oAuth IDP form are using incorrect markup.

Important This issue proposes a quick fix to the markup. Another issue offers a new design for the choices:

  • 40

Steps to Reproduce

  1. Be in a state like that of a user who has not visited Tapis.io.
  2. Open https://dev.develop.tapis.io/v3/oauth2/idp.
  3. See a form with radio buttons.

Expected Result

Radio button labels are on the same line as the radio buttons.

Actual Result

Radio buttons are on a new line underneath the radio buttons.

Proposals

A. Use Markup Expected by s-form Class[^1]

Snippet of Expected Markup Applied to Problem Form ```
  • ```
    What Makes This Class Special? The `s-form` class is a ["**S**cope" namespace](https://csswizardry.com/2015/03/more-transparent-ui-code-with-namespaces/#scope-namespaces-s-) (hence the "s-"). It has an inflexible expectation of the markup inside it. _The alternative to [`s-form` class][s-form][^1] is [**`c-form`**][c-form][^1], which requires a class on most elements in the form. It is tedious, but gives you some more freedom with the markup tags and usage._
    Why Those Tags? 0. It is common to use a [`
    `](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div) is used to wrap all elements required for a any one field. But, a `
    ` (or other non-semantic wrapper) is not necessary for every single ``, because ``s of `type="radio"` (and `type="checkbox"`) function together as a combined input. Such inputs can be grouped within a single wrapper. 1. The collection of [`` buttons](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio) act as one option, so they—as a single group—merit a label (`
    And… required? The `has-required` class lets CSS know that the field within (e.g. ``, `