mirror of
https://github.com/bitwarden/android.git
synced 2024-11-22 01:16:02 +03:00
Update internal BitwardenTextButton padding to be consistent with all Bitwarden Buttons (#3834)
This commit is contained in:
parent
5173dfd424
commit
0676cf8826
1 changed files with 5 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
package com.x8bit.bitwarden.ui.platform.components.button
|
package com.x8bit.bitwarden.ui.platform.components.button
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.PaddingValues
|
||||||
import androidx.compose.material3.ButtonDefaults
|
import androidx.compose.material3.ButtonDefaults
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
|
@ -39,16 +39,15 @@ fun BitwardenTextButton(
|
||||||
onClick = onClick,
|
onClick = onClick,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
enabled = isEnabled,
|
enabled = isEnabled,
|
||||||
|
contentPadding = PaddingValues(
|
||||||
|
vertical = 10.dp,
|
||||||
|
horizontal = 24.dp,
|
||||||
|
),
|
||||||
colors = defaultColors,
|
colors = defaultColors,
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = label,
|
text = label,
|
||||||
style = MaterialTheme.typography.labelLarge,
|
style = MaterialTheme.typography.labelLarge,
|
||||||
modifier = Modifier
|
|
||||||
.padding(
|
|
||||||
vertical = 10.dp,
|
|
||||||
horizontal = 12.dp,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue