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
updating to support HA 0.88 #63
Conversation
prevent polluting the `window` and avoid conflicts with things in the `window` to resolve custom-cards#64
@ohadbenita you mentioned over here (just wanted to bring that conversation into the PR where we are addressing the home assistant 0.88.0 issues) that the styles are not being respected. Can you share what styles you are using that are no longer respected? Home assistant changed the underlying button we use and its styles are a bit more fixed. For example, the color and height were fixed and we had to specifically override them. I don't currently have any custom styles on my instances and not sure what custom styles everyone else is using. But based on the README, i guess it's safe to assume at least font-size and font-weight are common-ish ones |
moving the styles to the inner div should allow us to override with custom `styles`
@ohadbenita I've just pushed an update that should allow the custom styles to work. Try it out and let us know how it works. I'll check in later...time for my day job :) |
That looks awesome @ammmze ! Thanks a lot. Gonna try to look at this asap. |
I use exactly these mentioned in the readme- font-weight and font-size.
Also tried font-family with no luck
On Fri, 22 Feb 2019 at 16:45 Branden ***@***.***> wrote:
@ohadbenita <https://github.com/ohadbenita> you mentioned over here
<#64 (comment)>
that the styles are not being respected. Can you share what styles you are
using that are no longer respected? Home assistant changed the underlying
button we use and its styles are a bit more fixed. For example, the color
and height were fixed and we had to specifically override them. I don't
currently have any custom styles on my instances and not sure what custom
styles everyone else is using. But based on the README, i guess it's safe
to assume at least font-size and font-weight are common-ish ones
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AdL_voGL64fv80--DIy6DSiLLlH6HIMKks5vQAJrgaJpZM4bIwa8>
.
--
אוהד בניטה
נייד - 0508246047
\__/ # ##
`( `^=_ p _###_
c / ) | /
_____- //^---~ _c 3
/ ----^\ /^_\ / --,-
( | | O_| \\_/ ,/
| | | / \| `-- /
(((G |-----|
//-----\\
// \\
/ | | ^|
| | | |
|____| |____|
/______) (_____\
|
Hi, I’m not really great with merging code but I still wanted to ask this question. Would it be possible to merge this with lopton’s code? His code is a fork of this project and I unfortunately rely on it. Thanks for this fix though, my wife was getting crazy already that her buttons no longer worked :P. Edit: link to repository/code here: |
@DavidFW1960 if it's something small like that, I say we proceed with merging this and worry about small tweaks later so we can get everyone back up and running. I'll do some more testing tonight along with @kuuji |
Yeah I agree Ian.... Great job here by all.. |
OK I changed the padding on line 41 to 4% instead of 8px and it is perfect on my ipad and chrome pc and my iPhone!!! So I recommend changing to 4% |
@DavidFW1960 how are you getting the font to display below your button in upper and lower case? Using css style? |
Like I said they are the core button-card for those 2 on the left. |
@DavidFW1960 - doh, yep you're getting the same uppercase font as well, sorry my bad - |
Co-Authored-By: ammmze <ammmze@gmail.com>
I'm going to go ahead and merge/release this and we can do cleanup later. |
Phew ... got that change in just in time :) |
I was waiting for it :) We should cleanup the text to match the core buttons look/feel |
@iantrich Thanks. |
@peterhoe I don't care for this release. Not going for perfection, just up and running |
It is slightly bolded. The |
Cant make the bottom of the button align with the normal button though.... nothing I try helps.. |
Same font as mwc-button, for example used on the Configuration / Configuration validation pane. https://github.com/home-assistant/home-assistant-polymer/pull/2744 |
This got me back close enough to what i had before
|
Went through a few iterations discussed in #57 and #60. The gist of the changes are...
home-assistant-main
instead ofhui-error-entity-row
button-card-button
which will be based onmwc-button
if available, otherwise fallback topaper-button
mwc-button
's styles to allow for variable height and font color inheritingwindow
and avoid conflicts withwindow
The result looks like this...