Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bennypowers
Copy link
Collaborator

@bennypowers bennypowers commented Apr 17, 2023

Closes #3811

/**
 * @license
 * Copyright 2022 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */

import {LitElement} from 'lit';
import {customElement} from 'lit/decorators.js';

/**
 * @cssProperty [--default-no-description=#324fff]
 * @cssProperty [--default-with-description=#324fff] Description for --default-with-description
 * with wraparound
 * @cssProperty [--default-with-description-dash=#324fff] - Description for --default-with-description-dash
 */
@customElement('element-a')
export class ElementA extends LitElement {}
{
  "cssProperties": [
    { "name": "--default-no-description", "default": "#324fff" },
    { "name": "--default-with-description", "default": "#324fff" },
    {
      "name": "--default-with-description-dash",
      "description": "Description for --default-with-description-dash",
      "default": "#324fff"
    },
  ]
}

@changeset-bot
Copy link

changeset-bot bot commented Apr 17, 2023

🦋 Changeset detected

Latest commit: 4ace3a8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@lit-labs/analyzer Minor
@lit-labs/cli Patch
@lit-labs/gen-manifest Patch
@lit-labs/gen-utils Patch
@lit-labs/gen-wrapper-angular Patch
@lit-labs/gen-wrapper-react Patch
@lit-labs/gen-wrapper-vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bennypowers bennypowers force-pushed the feat/analyzer/css-prop-fallback branch from 7953bd3 to c83cfc5 Compare April 17, 2023 09:38
@bennypowers bennypowers force-pushed the feat/analyzer/css-prop-fallback branch from c83cfc5 to 3e51074 Compare April 18, 2023 06:44
@bennypowers bennypowers marked this pull request as ready for review April 18, 2023 06:49
Copy link
Collaborator

@43081j 43081j left a comment

Choose a reason for hiding this comment

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

looks good to me 🥳

Copy link
Collaborator

@justinfagnani justinfagnani left a comment

Choose a reason for hiding this comment

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

Nice!

@justinfagnani justinfagnani changed the title feat(analyzer): css prop fallbacks [labs/analyzer] CSS variable fallbacks May 2, 2023
@justinfagnani justinfagnani merged commit 2c59ceb into lit:main May 2, 2023
@bennypowers bennypowers deleted the feat/analyzer/css-prop-fallback branch May 2, 2023 14:59
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.

[labs/analyzer] css property default (i.e. fallback) values

3 participants