This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to rails SageChoice * Switch to Rails SageTab * DEBUG: Tab action results in focus change * Update choice to include icon and arrow variations * Update tabs accordingly * Further tweaks to tabs and tab pane style and spacing settings * Further adjsut js bug * Hone styles * Adjust border settings * Adjust layout settings
- Loading branch information
1 parent
b47a9af
commit 90cb7b5
Showing
20 changed files
with
388 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
<h3 class="t-sage-heading-6">Single Line</h3> | ||
<h3 class="t-sage-heading-6">Single Line (radio type)</h3> | ||
|
||
<%= render "examples/elements/choice/markup", | ||
target: "example", | ||
id: "choice1", | ||
text: "Option 1" | ||
<%= sage_component SageChoice, { | ||
target: "example", | ||
text: "Option 1", | ||
type: "radio", | ||
active: true | ||
} | ||
%> | ||
|
||
<h3 class="t-sage-heading-6">Multi-Line</h3> | ||
<h3 class="t-sage-heading-6">Multi-Line (radio type)</h3> | ||
<%= sage_component SageChoice, { | ||
target: "example", | ||
text: "Option 1", | ||
subtext: "Description of Option 1", | ||
type: "radio", | ||
} | ||
%> | ||
|
||
<h3 class="t-sage-heading-6">Arrow Variation</h3> | ||
<%= sage_component SageChoice, { | ||
target: "example", | ||
text: "Option 1", | ||
type: "arrow", | ||
} | ||
%> | ||
|
||
<%= render "examples/elements/choice/markup", | ||
target: "example", | ||
id: "choice2", | ||
stacked: true, | ||
text: "Option 1", | ||
subtext: "Description of Option 1" | ||
<h3 class="t-sage-heading-6">Icon Variation</h3> | ||
<p>Select any icon to appear to the left of the text.</p> | ||
<%= sage_component SageChoice, { | ||
target: "example", | ||
text: "Option 1", | ||
type: "icon", | ||
icon: "video-on" | ||
} | ||
%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<tr> | ||
<td>active</td> | ||
<td>Toggles <code>--active</code> modifier to visually indicate whether this choice is active/selected.</td> | ||
<td>Boolean</td> | ||
<td>false</td> | ||
</tr> | ||
<tr> | ||
<td>align_center</td> | ||
<td>Toggles <code>--align-center</code> modifier to visually center the icon and text. This is only intended to be used with the "icon" type.</td> | ||
<td>Boolean</td> | ||
<td>false</td> | ||
</tr> | ||
<tr> | ||
<td>text</td> | ||
<td>Sets the content of the primary text line</td> | ||
<td>String</td> | ||
<td>null</td> | ||
</tr> | ||
<tr> | ||
<td>subtext</td> | ||
<td>Sets the content of the secondary text line</td> | ||
<td>String</td> | ||
<td>null</td> | ||
</tr> | ||
<tr> | ||
<td>type</td> | ||
<td>Sets the choice graphic type. If <code>icon</code> is used here the <code>icon</code> prop must also be set.</td> | ||
<td>icon | radio | arrow</td> | ||
<td>radio</td> | ||
</tr> | ||
<tr> | ||
<td>icon</td> | ||
<td>Provides the name of the Sage Icon to be displayed before the text content.</td> | ||
<td>String</td> | ||
<td>null</td> | ||
</tr> | ||
<tr> | ||
<td>target</td> | ||
<td>Provides the <code>id</code> for the corresponding Tab Pane that this choice will activate.</td> | ||
<td>String</td> | ||
<td>null</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<%= render "examples/elements/tab/markup", | ||
target: "example-tab1", | ||
text: "Page 1" | ||
<%= sage_component SageTab, { | ||
target: "example-tab1", | ||
text: "Page 1" | ||
} | ||
%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<tr> | ||
<td>active</td> | ||
<td>Toggles <code>--active</code> modifier to visually indicate whether this tab is active/selected.</td> | ||
<td>Boolean</td> | ||
<td>false</td> | ||
</tr> | ||
<tr> | ||
<td>text</td> | ||
<td>Sets the content of the text</td> | ||
<td>String</td> | ||
<td>null</td> | ||
</tr> | ||
<tr> | ||
<td>target</td> | ||
<td>Provides the <code>id</code> for the corresponding Tab Pane that this tab will activate.</td> | ||
<td>String</td> | ||
<td>null</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.