首页 > 解决方案 > upgrade ionic 3 to ionic 5

问题描述

The old project that I'm trying to upgrade has a custom CSS for the native element

      .searchbar-input {
        padding: 6px 55px;
        border-radius: 2px;
        background-position: left 8px center;
        height: auto;
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 3rem;
        color: #141414;
        background-color: #fff;
        -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    }

although we can't do something similar with ionic 4/5 because most of the CSS encapsulated inside of the component. is there a possibility to make me edit the native element CSS or importing my old style to the new project?

标签: ionic-frameworkionic3ionic-nativeionic5

解决方案


推荐阅读