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

29 allow button size change #30

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

kenstone
Copy link

Add ability to specify the width, height of the button

Closes #29. New properties on the button width,height. By default
the fields are set to 85px. Properties are on the actual button part
of the card, not the card as a whole.

Also, changed cursor to pointer when using a mouse.

Slight tweaks to README

kenstone and others added 11 commits May 22, 2020 20:53
Bumps the TypeScript version to 3.8.3 (note that this is not the latest
version as of this commit). 3.8.3 doesn't have the spread operator bug.

The build was failing with this message:

```
button-text-card/src/button-text-card.ts(53,7): semantic error TS2783:
'title' is specified more than once, so this usage will be overwritten.
```

Added vscode exclusions to gitignore.
…one/button-text-card into kenstone-fix-typescript-build-error

# Conflicts:
#	dist/button-text-card.js
#	dist/button-text-card.js.map
- Added support for custom icon_size
Adds Savjee#29. New properties on the button `width`,`height`. By default
the fields are set to 85px. Properties are on the actual button part
of the card, not the card as a whole.

Also, changed cursor to `pointer` when using a mouse.

Slight tweaks to README
Adds Savjee#29. New properties on the button `width`,`height`. By default
the fields are set to 85px. Properties are on the actual button part
of the card, not the card as a whole.

Also, changed cursor to `pointer` when using a mouse.

Slight tweaks to README
Copy link
Owner

@Savjee Savjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this great PR! Sorry it took me this long to get around to it.

I added some small remarks/questions.

Also: could you limit the number of changes per PR in the future? This one could've been split up in a few PR's ;)

@@ -278,6 +288,7 @@ export class BoilerplateCard extends LitElement {
box-shadow: 2px 2px rgba(0, 0, 0, 0);
padding: 16px;
outline: none;
cursor: pointer;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea but I think we should only add this when the user defined a tap_action or entity.

@@ -53,7 +54,9 @@ export class BoilerplateCard extends LitElement {
name: 'Button Text Card',
title: '',
subtitle: '',
height: '85px',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For icon_size we don't require users to add px.
I think we shouldn't do it here either to stay uniform. What do you think?

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.

2 participants