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
Converted paper-dialog to ha-paper-dialog #3055
Conversation
hassio/src/hassio-markdown-dialog.js
Outdated
import "@polymer/paper-icon-button/paper-icon-button"; | ||
import { html } from "@polymer/polymer/lib/utils/html-tag"; | ||
import { PolymerElement } from "@polymer/polymer/polymer-element"; | ||
|
||
import "../../src/components/ha-markdown"; | ||
import "../../src/resources/ha-style"; | ||
import "../../src/panels/lovelace/components/dialog/ha-dialog"; |
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.
this shouldn't be part of the lovelace components but instead be part of src/components
and name should match the component: ha-paper-dialog
.
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.
See my comment at the top. Knew you were going to say that...
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.
Done
@@ -428,7 +428,7 @@ export class HuiEditCard extends LitElement { | |||
} | |||
|
|||
@media (min-width: 1200px) { | |||
paper-dialog { | |||
ha-paper-dialog { |
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.
This seems weird. If there is no paper dialog on this page, we can remove this CSS Declaration ?
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.
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.
Oh it was broken before 😛
Maybe ha-dialog should be placed in top level components folder. But that's going to be a lot of work...