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

Changing font-size does not work properly #53

Open
Dav418 opened this issue Dec 2, 2021 · 0 comments
Open

Changing font-size does not work properly #53

Dav418 opened this issue Dec 2, 2021 · 0 comments

Comments

@Dav418
Copy link

Dav418 commented Dec 2, 2021

Hello,

In my project, I am trying to change the size of the font but this does not make the smooth-top (343x61) smooth-middle (343x30) and smooth-bottom (343-61) update properly.

Increasing the flex val in pickerOptions also seems to do nothing

I am doing this by passing on my own class in data like so

pickerOptions() {
            const list = this.options.map(option => option.label);
            const pickerOptionsRtn = [{
                currentIndex: this.options.findIndex(opt => opt.value === this.internalValue),
                flex: 5,
                list,
                textAlign: 'center',
                className: 'smooth-scroll-block has-opacity-1'
            }];

            return pickerOptionsRtn;
        },

My css is

// used in className
.smooth-scroll-block{
        font-size: 23px !important; // font does not change without important
}

.smooth-picker {
        background-color: map-get($elevation, '5') !important;
    }

.smooth-scroll-block{
    font-size: 23px !important;
}

.smooth-handle-layer {
    padding-left: #{nth($spacing, 2)}px;
    padding-right: #{nth($spacing, 2)}px;
}

.smooth-top, .smooth-middle, .smooth-bottom {
    background: transparent;
}
.smooth-top {
    border-bottom: solid 1px $border-picker-color !important;
    background: rgba(map-get($elevation, '5'), 0.55) !important;
}
.smooth-bottom {
    border-top: solid 1px $border-picker-color !important;
    background: rgba(map-get($elevation, '5'), 0.55) !important;
}

and this produces this (currently selected is 'Electronics and Software':

image

Any help is appreciated, thanks.

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