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

Add files via upload #1470

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

radclif
Copy link

@radclif radclif commented Feb 29, 2024

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.
  • I have followed the contribution guidelines
    • This PR is for a custom-card or documentation change and therefore directed to the main branch.
    • This PR is for a official card or any other directly to the integration related change and therefore directed to the release branch.

Copy link
Collaborator

@wilbiev wilbiev left a comment

Choose a reason for hiding this comment

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

Code yaml-file has several issues.

Example of correct coding:

---
custom_card_radcliff_externalweblink:
  template:
    - "ulm_language_variables"
    - "icon_only"
  variables:
    ulm_custom_card_radcliff_externalweblink_linkicon: "mdi:link-circle-outline"
    ulm_custom_card_radcliff_externalweblink_iconcolor: "blue"
  tap_action:
    action: "url"
  data:
    url_path: "[[[ return variables.ulm_custom_card_radcliff_externalweblink_linkurl ]]]"
  show_icon: true
  show_label: true
  show_name: true
  icon: "[[[ return variables.ulm_custom_card_radcliff_externalweblink_linkicon ]]]"
  name: "[[[ return variables.ulm_custom_card_radcliff_externalweblink_linkname ]]]"
  styles:
    icon:
      color: "[[[ return `rgba(var(--color-${variables.ulm_custom_card_radcliff_externalweblink_iconcolor}), 1)` ]]]"
    name:
      - align-self: "center"
      - justify-self: "start"
      - font-weight: "bold"
      - font-size: "1rem"
      - margin-left: "12px"
      - filter: "opacity(100%)"
    img_cell:
      background-color: "[[[ return `rgba(var(--color-${variables.ulm_custom_card_radcliff_externalweblink_iconcolor}), 0.2)` ]]]"
    grid:
      - grid-template-areas: "'i n'"
      - grid-template-columns: "min-content min-content"
      - grid-template-rows: "min-content"

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