Giter VIP home page Giter VIP logo

Comments (7)

jordaaash avatar jordaaash commented on May 22, 2024

Hmm, hard to say without knowing what's different about your project. I can't see anything that should matter in your code above, but it sounds like the issue is related to stylesheets or the build config, so it likely wouldn't show up there anyway. Any chance you can publish a repo that reproduces the issue?

from wallet-adapter.

callensm avatar callensm commented on May 22, 2024

It is all on github but in a private repository. I don't use any stylesheets, I just use style objects (React.CSSProperties) and attach to components. the antd less stylesheet is the only one being globally imported.

Is there anything specific I can file dump in here for you?

from wallet-adapter.

callensm avatar callensm commented on May 22, 2024

I managed to fix it by adding a new stylesheet with just:

@import '~antd/dist/antd.dark.less';

.ant-btn.wallet-adapter-modal-menu-button {
  display: flex;
}

which threw them to opposite sides like in the preview in the documents. still confused why that wasn't happening by default for me though 🤷🏼‍♂️

from wallet-adapter.

jordaaash avatar jordaaash commented on May 22, 2024

You mentioned originally

importing the antd/dist/antd.dark.less

Here you're importing ~antd/dist/antd.dark.less. Any chance the leading ~ was missing before?

from wallet-adapter.

jordaaash avatar jordaaash commented on May 22, 2024

Or maybe the .wallet-adapter-modal-menu-button styles were being overriden by a style with higher specificity elsewhere?

from wallet-adapter.

callensm avatar callensm commented on May 22, 2024

The ~ is a .less file import specification and is equivalent to the TypeScript import without it.

The .wallet-adapter-modal-menu-button couldn't have been getting overridden anywhere because until now, I never had any stylesheets being bundled other than the antd distribution.

from wallet-adapter.

jordaaash avatar jordaaash commented on May 22, 2024

I'm glad you were able to find a solution. Unfortunately, without being able to see a reproduction with code there's nothing I can do to debug this. If you're able to share that please do reopen the issue!

from wallet-adapter.

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.