Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function OperationGovernance(props) {
<Grid item md={1} />
<Grid item md={5}>
{componentValidator.includes('operationLevelRateLimiting') &&
<Box display='flex' flexDirection='row' alignItems='flex-start'>
<Box display='flex' flexDirection='row' alignItems='center'>
<TextField
select
fullWidth={!isOperationRateLimiting}
Expand All @@ -161,9 +161,7 @@ export default function OperationGovernance(props) {
<Box
fontWeight='fontWeightBold'
display='inline'
color='primary.main'
cursor='pointer'
sx ={{ marginLeft: '4px' }}
sx={{ marginLeft: '4px' }}
>
<FormattedMessage
id={'Apis.Details.Resources.components.operationComponents.'
Expand Down Expand Up @@ -199,7 +197,7 @@ export default function OperationGovernance(props) {
defaultMessage='Use'
/>
{' '}
<Box fontWeight='fontWeightBold' display='inline' color='primary.main'>
<Box fontWeight='fontWeightBold' display='inline'>
<FormattedMessage
id={'Apis.Details.Resources.components.operationComponents.'
+ 'OperationGovernance.rate.limiting.helperText.section2'}
Expand Down Expand Up @@ -244,7 +242,17 @@ export default function OperationGovernance(props) {
))}
</TextField>
{!isOperationRateLimiting && (
<Button onClick={scrollToTop}>
<Button
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ratheshan03 Regarding this change, I have applied your fix locally and observed the behaviour. The button has gone a little down and the alignment looks a bit off from the bottom level compared with the input box. And also clicking on the button does not scroll to the top with the fix still. Will it be possible to check and fix?

Screenshot 2025-10-30 at 11 21 48

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tharikaGitHub, Made the changes that you requested above, now the alignement is fixed more precisly and the functionality of the button is already seemed working and i also verified its working and scrolls to thte top. the evidence to the testing has been given below:

issue-4338-fix
Publisher.-.WSO2.APIM.-.Google.Chrome.2025-10-30.14-27-46.mp4

Thanks.

onClick={scrollToTop}
variant='text'
size='small'
sx={{
ml: 1,
mb: 1,
textTransform: 'none',
minWidth: 'auto'
}}
>
<FormattedMessage
id={
'Apis.Details.Resources.components.operationComponents.'
Expand Down
Loading