Coder Social home page Coder Social logo

Subclassing support? about ember-css-modules HOT 2 CLOSED

salsify avatar salsify commented on September 13, 2024
Subclassing support?

from ember-css-modules.

Comments (2)

dfreeman avatar dfreeman commented on September 13, 2024

In your example above, does some-component inherit my-component's template? I'd expect to need to do something like this for that to work:

import MyComponent from 'thing/components/my-component/component';
import layout from 'thing/components/my-component/template';

export MyComponent.extend({
  layout,
  foo: 'beep'
});

Styles for a component/controller are essentially resolved in the same way as templates are, so in general I wouldn't expect subclassing to work unless you explicitly import the parent component's styles.

from ember-css-modules.

max avatar max commented on September 13, 2024

Makes sense. I didn't draw the parallels to templates because in theory styles could work (by merging and overriding) but this sounds like a nightmare so 👍 .

from ember-css-modules.

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.