-
Notifications
You must be signed in to change notification settings - Fork 20
Conversation
docs/example/tipBoxDocs.vue
Outdated
@@ -1,5 +1,6 @@ | |||
<template> | |||
<doc-section id="tipBoxDocs" name="TipBox"> | |||
<p>Alternative alias: box</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Alias" is sufficient.
docs/example/tipBoxDocs.vue
Outdated
</tip-box> | ||
<box background-color="white" border-color="grey" border-left-color="blue"> | ||
empty box with left border | ||
</box> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Let's move these into a separate
<div class="bs-example"></div><doc-code></doc-code>
group.
At the moment, we need to scroll to see the doc-code. - Two examples are sufficient: empty box (demo colours), info rocket (demo icon)
- Both can use
<box>
. - Customise
type=default
beforetype=info
. - Be descriptive:
empty box with left border
should bedefault, styled as empty box with blue left border
,info but with rocket
should beinfo, with rocket icon
,
docs/example/tipBoxDocs.vue
Outdated
</doc-code> | ||
<doc-table name="TipBox Options"> | ||
<div> | ||
<p>backgroundColor</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
background-color
(similar for others)
docs/example/tipBoxDocs.vue
Outdated
</div> | ||
<div> | ||
<p>type</p> | ||
<p><code>String</code>, one of <code>warning</code>, <code>info</code>, <code>definition</code>, <code>success</code>, <code>tip</code>, <code>important</code>, <code>wrong</code>, or empty for default.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use the same order as examples ("or empty for default." can remain at the end).
- Considering the length, let's move this to Description (as done in Panel Options).
docs/example/tipBoxDocs.vue
Outdated
<p>borderLeftColor</p> | ||
<p><code>String</code></p> | ||
<p><code>null</code></p> | ||
<p>Color of the left border.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave description blank unless it adds value.
- Change this to "Overrides `border-color` for the left border."
- Also keep for
color
.
@acjh thanks for the reviews! |
docs/example/tipBoxDocs.vue
Outdated
info, with rocket icon | ||
</box> | ||
</doc-code> | ||
<doc-table name="TipBox Options"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just "TipBox"
, otherwise it becomes "TipBox Options Options".
docs/example/tipBoxDocs.vue
Outdated
<p>border-left-color</p> | ||
<p><code>String</code></p> | ||
<p><code>null</code></p> | ||
<p>Overrides `border-color` for the left border.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be <code>border-color</code>
.
But let's just remove the backticks, to be consistent with Panel Option's "no-switch" reference.
docs/example/tipBoxDocs.vue
Outdated
@@ -52,6 +53,60 @@ | |||
definition | |||
</tip-box> | |||
</doc-code> | |||
<div class="bs-example"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a heading:
<br>
<h4>Custom boxes</h4>
Changes made. |
src/index.js
Outdated
@@ -30,6 +31,7 @@ const components = { | |||
accordion, | |||
affix, | |||
aside, | |||
box, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does box: tipBox
à la tabs: tabSet
work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yamgent In case you missed this.
What is the purpose of this pull request? (put "X" next to an item, remove the rest)
• [X] Enhancement to an existing feature
Fixes MarkBind/markbind#69
Fixes MarkBind/markbind#62
What is the rationale for this request?
tip-box
. (You can usebox
instead oftip-box
).What changes did you make? (Give an overview)
Added new attributes
color
,background-color
,icon
,border-color
for tip-box customization. Also added a new attributeborder-left-color
to support empty-fill type tip boxes.Provide some example code that this change will affect:
Is there anything you'd like reviewers to focus on?
Documentation wordings.
Testing instructions:
The documentation provides the code under the tip-box section, can use that web page to experiment with the new attributes shown in the documentation.