Skip to content

Commit 4463d27

Browse files
authored
Merge pull request #1058 from db-ui/1056-radio-power-app-component
feat(power apps): added radio component
2 parents b8a4981 + b4f5854 commit 4463d27

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

build-power-apps/DBUI/DBUI.cdsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<ProjectReference Include="..\input\DBInput.pcfproj" />
5050
<ProjectReference Include="..\alert\DBAlert.pcfproj" />
5151
<ProjectReference Include="..\link\DBLink.pcfproj" />
52+
<ProjectReference Include="..\radio\DBRadio.pcfproj" />
5253
<ProjectReference Include="..\infotext\DBInfotext.pcfproj" />
5354
</ItemGroup>
5455

packages/components/src/components/radio/radio.lite.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ useMetadata({
1616
// MS Power Apps
1717
includeIcon: false,
1818
hasDisabledProp: true,
19-
properties: []
19+
properties: [
20+
// jscpd:ignore-start
21+
{ name: 'children', type: 'SingleLine.Text' },
22+
{ name: 'name', type: 'SingleLine.Text' },
23+
{ name: 'id', type: 'SingleLine.Text' }
24+
// TODO: We'll most likely need these later on
25+
// { name: 'checked', type: 'TwoOptions' },
26+
// { name: 'disabled', type: 'TwoOptions' },
27+
// jscpd:ignore-end
28+
]
2029
}
2130
});
2231

packages/components/src/components/radio/radio.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ $font-size-height: calc(var(--db-base-font-size) * var(--db-base-line-height));
2828
// TODO: Extract those transition durations as variables #645
2929
transition: border-width 0.15s $db-transition-functional-timing;
3030

31+
// TODO: probably extract this to an overwrite or external file
32+
// workarounds for power apps
33+
width: auto;
34+
padding: 0;
35+
3136
&:checked {
3237
border-width: calc(#{$font-size-height} * 0.3);
3338

0 commit comments

Comments
 (0)