Skip to content

border field question #1208

@webbudesign

Description

@webbudesign

Hi again,

While I working on a border field. I found a small problem.

Here is the field codes:

array(
'id'        => 'setup18_headerbarsettings_border',
'type'      => 'border',
'title'     => __('Header Bottom Border Color', 'pointfindert2d'),
'compiler'    => array('.pfnotificationwindow','.wpf-header'), 
'all' => false,
'right'  => false,
'top'  => false,
'left'  => false,
'style' => false,
'bottom' => true,
'default'   => array(
   'border-color'  => '#1e73be', 
   'border-style'  => 'solid', 
   'border-top'    => '0', 
   'border-right'  => '0', 
   'border-bottom' => '1px', 
   'border-left'   => '0'
)
),

Here is the output:

.pfnotificationwindow, .wpf-header {
border-top: 1px inherit #1e73be;
border-right: inherit inherit #1e73be;
border-bottom: 1px inherit #1e73be;
border-left: inherit inherit #1e73be;
}

Why when I do "'style' => false" the s system not using the default value solid? inherit not working on browser.

Note: I want to disable style selection for users. And only want to show border bottom and color selections.

Thanks for your help.
Webbu Design

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions