Last active
March 21, 2019 02:31
-
-
Save chillu/d0aee222df9039ad267ea7d4bc9c2bf9 to your computer and use it in GitHub Desktop.
Design System Brainstorm
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
<!-- See https://github.com/silverstripe/cwp-starter-theme/blob/master/templates/Includes/AriaAttributes.ss --> | |
<% if $Message || $Description %> | |
aria-describedby="<% if $Message %>message-$ID<% end_if %><% if $Description %><% if $Message %> <% end_if %>describes-$ID<% end_if %>" | |
<% end_if %> | |
<% if $Title || $RightTitle %> | |
aria-labelledby="<% if $Title %>title-$ID<% end_if %><% if $RightTitle %><% if $Title %> <% end_if %>extra-label-$ID<% end_if %>" | |
<% end_if %> |
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
<% component GridRow %> | |
$Block | |
</% end_component %> |
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
<div class="design-system-flexbox" cols="$cols"> | |
<!-- See https://github.com/symbiote/silverstripe-components --!> | |
$children | |
</div> |
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
<% component Grid cols=12 %> | |
<% loop $Blocks %> | |
$BlockHolder | |
<% end_loop %> | |
<% end_component %> |
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
<!-- Default template from starter theme, with additional classes. --> | |
<!-- See https://github.com/silverstripe/cwp-starter-theme/blob/master/templates/SilverStripe/Forms/TextField.ss --> | |
<!-- See https://github.com/silverstripe/silverstripe-framework/blob/4/src/Forms/FormField.php#L713 for getAttributesHTML implementation --> | |
<input $getAttributesHTML('class') class="$ExtraClass.ATT form-control" <% include AriaAttributes %> /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment