Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override Ant design vue components #106

Open
alexisponcet opened this issue Mar 21, 2020 · 0 comments
Open

Override Ant design vue components #106

alexisponcet opened this issue Mar 21, 2020 · 0 comments

Comments

@alexisponcet
Copy link

alexisponcet commented Mar 21, 2020

Hey. I would like to know if it is possible to override external library's styles such as ant design vue. I tried this code :

<script lang="ts">
    import { Layout } from 'ant-design-vue';  
    import { Component, Vue } from 'vue-property-decorator';  
    import styled from 'vue-styled-components';  
    const { Header } = Layout;  

    const WhiteHeader = styled(Header)`
        background-color: white  
    ;`

    @Component({ 
        components: { WhiteHeader }
    })
    export default class TestHeader extends Vue {}
</script>

<template>
    <a-layout>
        <white-header>header</white-header>
    </a-layout>
</template>

However, the ant design header style is not taken..
I know that works with react, styled-components and antd. How can I manage to pass that code. Any idea?

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

No branches or pull requests

1 participant