Giter VIP home page Giter VIP logo

Comments (3)

squidsoup avatar squidsoup commented on August 19, 2024

@bartaz can we consider upstreaming these styles?

@mixin maas-icon-success($bg-color, $tick-color: $color-x-light) {
  background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate%281 1%29' fill='none' fill-rule='evenodd'%3E%3Ccircle stroke='#{vf-url-friendly-color($bg-color)}' stroke-width='1.5' fill='#{vf-url-friendly-color($bg-color)}' cx='7.25' cy='7.25' r='7.25'/%3E%3Cpath fill='#{vf-url-friendly-color($tick-color)}' d='M11.05 4.173l-.066.058L6.25 8.378l-2.776-2.38-.839.948L6.25 10.75l5.5-5.787-.7-.79z'/%3E%3C/g%3E%3C/svg%3E");
}

.p-icon--success-positive {
  @include maas-icon-success($color-x-light, $color-positive);

  @extend %icon;
}

.p-icon--success-negative {
  @include maas-icon-success($color-x-light, $color-negative);

  @extend %icon;
}

.p-action-button {
  @include vf-animation(
    $property: (
      background-color,
      border,
      opacity,
    ),
    $duration: snap
  );

  &.is-loading,
  &.is-success {
    opacity: 1 !important; // Override Vanilla disabled opacity - too much colour changing otherwise
  }
}

from react-components.

bartaz avatar bartaz commented on August 19, 2024

@squidsoup Sure, I'm want to plan upstreaming all react-components styling to Vanilla this cycle.

Once we have the master epic, etc, I'll link to this.

from react-components.

bartaz avatar bartaz commented on August 19, 2024

This is already fixed

from react-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.