Skip to content

Add a textual label to the "Add Integration" button#7604

Closed
adamjernst wants to merge 1 commit intohome-assistant:devfrom
adamjernst:integration-button
Closed

Add a textual label to the "Add Integration" button#7604
adamjernst wants to merge 1 commit intohome-assistant:devfrom
adamjernst:integration-button

Conversation

@adamjernst
Copy link
Contributor

The Material "fab" (floating action button) to add a new integration is currently configured without a label.

This leads to a lot of awkward documentation that refers to "the button with the + symbol". It also makes the button a relatively small and inconspicuous target.

I would like to discuss the possibility of adding a textual label to it using the extended style for mwc-fab. I have tenatively chosen "Add" but I am open to other options.

If this is approved, I am happy to send subsequent PRs for other similar buttons in the frontend.

Proposed change

Add a textual label to the "add integration" floating action button.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@bramkragten
Copy link
Member

Can you add a screenshot?

Our design sketches include a change of the fab :-)
image
https://www.figma.com/file/4LZqQZRynDZGTgA2rN35Te/Home-Assistant-config-mockup?node-id=0%3A1

@adamjernst
Copy link
Contributor Author

Nice! Glad I intuited the design direction ;)

add_integration

Since a lot of the documentation references "button with a + symbol", I suggest we leave the icon intact for now. After a few months pass and everyone has upgraded, we can edit the documentation to refer to the new caption and drop the icon.

The Material "fab" (floating action button) to add a new integration is currently configured without a label.

This leads to a lot of awkward documentation that refers to "the button with the + symbol". It also makes the button a relatively small and inconspicuous target.

I would like to discuss the possibility of adding a textual label to it using the `extended` style for `mwc-fab`. I have tenatively chosen "Add" but I am open to other options.

If this is approved, I am happy to send subsequent PRs for other similar buttons in the frontend.
adamjernst added a commit to adamjernst/frontend that referenced this pull request Nov 6, 2020
Similar to home-assistant#7604. It seems that the design sketches for Home Assistant include using labels for most floating action buttons... here's one more place we can do that.

This is especially important in my opinion since there are *two* "+" buttons on this screen - one to add a view, and one to add a card.
adamjernst added a commit to adamjernst/frontend that referenced this pull request Nov 6, 2020
Similar to home-assistant#7604. It seems that the design sketches for Home Assistant include using labels for most floating action buttons... here's two more places we can do that.

This is especially important for "Add Card" in my opinion since there are *two* "+" buttons on that screen - one to add a view, and one to add a card.
adamjernst added a commit to adamjernst/frontend that referenced this pull request Nov 6, 2020
Similar to home-assistant#7604. It seems that the design sketches for Home Assistant include using labels for most floating action buttons... here's two more places we can do that.

This is especially important for "Add Card" in my opinion since there are *two* "+" buttons on that screen - one to add a view, and one to add a card.
adamjernst added a commit to adamjernst/frontend that referenced this pull request Nov 6, 2020
Similar to home-assistant#7604. It seems that the design sketches for Home Assistant include using labels for most floating action buttons... here's two more places we can do that.

This is especially important for "Add Card" in my opinion since there are *two* "+" buttons on that screen - one to add a view, and one to add a card.
adamjernst added a commit to adamjernst/frontend that referenced this pull request Nov 6, 2020
Similar to home-assistant#7604. It seems that the design sketches for Home Assistant include using labels for most floating action buttons... here's two more places we can do that.

This is especially important for "Add Card" in my opinion since there are *two* "+" buttons on that screen - one to add a view, and one to add a card.
adamjernst added a commit to adamjernst/frontend that referenced this pull request Nov 6, 2020
Similar to home-assistant#7604. It seems that the design sketches for Home Assistant include using labels for most floating action buttons... here's two more places we can do that.

This is especially important for "Add Card" in my opinion since there are *two* "+" buttons on that screen - one to add a view, and one to add a card.
@adamjernst adamjernst closed this Nov 7, 2020
@adamjernst adamjernst deleted the integration-button branch November 7, 2020 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants