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

Details should remove margin-bottom on the last child #899

Closed
NickColley opened this issue Jul 13, 2018 · 0 comments
Closed

Details should remove margin-bottom on the last child #899

NickColley opened this issue Jul 13, 2018 · 0 comments
Labels
🐛 bug Something isn't working the way it should (including incorrect wording in documentation)

Comments

@NickColley
Copy link
Contributor

NickColley commented Jul 13, 2018

screen shot 2018-07-13 at 16 38 12

<details class="govuk-details" role="group" open="">
  <summary class="govuk-details__summary" role="button" aria-controls="details-content-0" aria-expanded="true">
    <span class="govuk-details__summary-text">
      I don't know the local council
    </span>
  </summary>
  <div class="govuk-details__text" id="details-content-0" aria-hidden="false">
    <div class="govuk-form-group">
      <label class="govuk-label" for="postcode">
        Enter your postcode
        <span class="govuk-hint">For example, SW1A 2AA</span>
      </label>
      <input class="govuk-input govuk-input--width-10" id="postcode" name="postcode" type="text">
    </div>                 
  </div>
</details>
.govuk-details__text > :last-child {
    margin-bottom: 0;
}

screen shot 2018-07-13 at 16 40 25

@NickColley NickColley added the 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) label Jul 13, 2018
@NickColley NickColley changed the title Should details remove margin-bottom on the last child? Details should remove margin-bottom on the last child Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working the way it should (including incorrect wording in documentation)
Projects
None yet
Development

No branches or pull requests

1 participant