Skip to content

Commit

Permalink
fix(toolbar): added center and baseline alignments (patternfly#5201)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnolting committed Mar 2, 2023
1 parent 737d33f commit a9fec9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/gulp/html.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ hbsInstance.registerHelper('ifEquals', (arg1, arg2, options) => {
// something else
// {{/ifEquals}}

hbsInstance.registerHelper('ternary', (testValue, trueValue, fallback) => {
return testValue ? trueValue : fallback;
});

// Using ternary
// if custom value for select--width: {{#> select select--width='160px'}}Filter by name{{/select}}
// else custom value for select--width: {{#> select)}}Filter by name{{/select}}
// {{#> select select--id=(concat toolbar--id '-select-name') select--width=(ternary toolbar-items-search-filter--width toolbar-items-search-filter--width '175px') select-toggle--icon="fas fa-filter"}}
// {{> toolbar-item-search-filter toolbar-items-search-filter--width="300px"}}

function compileHBS0(srcFiles) {
return srcFiles.pipe(
through2.obj((chunk, _, cb2) => {
Expand Down

0 comments on commit a9fec9f

Please sign in to comment.