Skip to content

Is it possible to change CSS so that label's arrow lines up with the bottom of the input field? #74

@mwnorman

Description

@mwnorman

I fork'd the project to allow a user to specify a custom CSS class:

$.validity.setup({
     tooltipCustomClass: 'my-tooltip-class'
});

So far I have been able to change the background color:

.my-tooltip-class {
    background-color: red !important;
}

.my-tooltip-class .validity-tooltip-outer, .my-tooltip-class .validity-tooltip-inner {
    border-right-color: red !important;
}

.my-tooltip-class .validity-tooltip-outer {
    border-right-color: red !important;
}

.my-tooltip-class .validity-tooltip-inner {
    border-right-color: red !important;
}

but I haven't figured out how to re-align the arrow to not be in the middle of the input field but instead line-up with the field's bottom.

Any insight would be greatly appreciated,

Mike Norman

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions