-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: dev
Are you sure you want to change the base?
Conversation
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
…tone/button-text-card into 29-allow-button-size-change
There was a problem hiding this 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; |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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?
Add ability to specify the width, height of the button
Closes #29. New properties on the button
width
,height
. By defaultthe 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