Code Monkey home page Code Monkey logo

Comments (7)

AlexMiniApps avatar AlexMiniApps commented on May 28, 2024

@MikolajKaminski Hi. What the version of the code-input component do you use?

from angular-code-input.

MikolajKaminski avatar MikolajKaminski commented on May 28, 2024

@MikolajKaminski Hi. What the version of the code-input component do you use?

@AlexMiniApps Lastest release - v1.6.0

from angular-code-input.

AlexMiniApps avatar AlexMiniApps commented on May 28, 2024

@MikolajKaminski it looks like you have incorrect styled the component, the styles have the different css paths:
image

from angular-code-input.

MikolajKaminski avatar MikolajKaminski commented on May 28, 2024

That is because the style variables are applied to the code-input component, which then contains the input fields. As you can see on the bottom screenshot, the other variables are applied to the input, it's just the --color and --input-font-weight which are not passed through.

from angular-code-input.

MikolajKaminski avatar MikolajKaminski commented on May 28, 2024

205296477-1d33a60a-d0a6-4c96-93ec-0e7ce6760017

@AlexMiniApps As you can see, the --item-background styling works well, so I do not expect this to be an issue with how I apply the styling.

from angular-code-input.

AlexMiniApps avatar AlexMiniApps commented on May 28, 2024

@MikolajKaminski ok. Please provide the SCSS source sample where you are styling the component for further research.

from angular-code-input.

MikolajKaminski avatar MikolajKaminski commented on May 28, 2024

@AlexMiniApps Below is the styling I use for updating the code-input component

:host {
    --light-gray: #F4F4F4;
  
    --border-light-gray: 1px solid var(--light-gray);
    --border-gray: 1px solid #CAD4DA;
    --border-purple: 1px solid #5950ec;
}

code-input {
    --color: #0B2242;
    --item-font-weight: 500;
    --item-spacing: 1rem;
    --item-background: var(--light-gray);
    --item-height: 3.5rem;
    --item-border: var(--border-light-gray);
    --item-border-bottom: var(--border-light-gray);
    --item-border-has-value: var(--border-gray);
    --item-border-bottom-has-value: var(--border-gray);
    --item-border-focused: var(--border-purple);
    --item-border-bottom-focused: var(--border-purple);
    --item-shadow-focused: none;
    --item-border-radius: 0.625rem;
}

from angular-code-input.

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.